An MCP-based chatbot | 一个基于MCP的聊天机器人
664 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docs/custom-board_zh.md | 41 | 参考示例(来自lichuang-c3-dev): |
| LOW | docs/custom-board_zh.md | 61 | #define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_1 |
| LOW | docs/custom-board_zh.md | 141 | 1. **类定义**:继承自`WifiBoard`或`Ml307Board` |
| LOW | docs/custom-board.md | 41 | - Display parameters and pins. |
| LOW | docs/custom-board.md | 61 | #define AUDIO_CODEC_PA_PIN GPIO_NUM_13 |
| LOW | docs/custom-board.md | 141 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 321 | if premultiplied: |
| LOW | main/application.h | 1 | #ifndef _APPLICATION_H_ |
| LOW | main/application.h | 21 | // Main event bits |
| LOW | main/mcp_server.h | 1 | #ifndef MCP_SERVER_H |
| LOW | main/assets.h | 1 | #ifndef ASSETS_H |
| LOW | main/led/circular_strip.h | 1 | #ifndef _CIRCULAR_STRIP_H_ |
| LOW | main/audio/audio_service.h | 1 | #ifndef AUDIO_SERVICE_H |
| LOW | main/audio/audio_service.h | 41 | #define MAX_PLAYBACK_TASKS_IN_QUEUE 2 |
| LOW | main/audio/audio_codec.h | 1 | #ifndef _AUDIO_CODEC_H |
| LOW | main/audio/codecs/es8374_audio_codec.h | 41 | #endif // _ES8374_AUDIO_CODEC_H |
| LOW | main/audio/processors/afe_audio_processor.h | 1 | #ifndef AFE_AUDIO_PROCESSOR_H |
| LOW | main/audio/wake_words/custom_wake_word.h | 1 | #ifndef CUSTOM_WAKE_WORD_H |
| LOW | main/audio/wake_words/esp_wake_word.h | 1 | #ifndef ESP_WAKE_WORD_H |
| LOW | main/audio/wake_words/afe_wake_word.h | 1 | #ifndef AFE_WAKE_WORD_H |
| LOW | main/boards/movecall-moji-esp32s3/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/movecall-moji-esp32s3/config.h | 21 | |
| LOW | main/boards/zhengchen-1.54tft-ml307/config.h | 1 | |
| LOW | main/boards/zhengchen-1.54tft-ml307/config.h | 21 | #define DISPLAY_SDA GPIO_NUM_41 |
| LOW | main/boards/minsi-k08-dual/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/minsi-k08-dual/config.h | 21 | |
| LOW | main/boards/esp-s3-lcd-ev-board-2/pin_config.h | 1 | |
| LOW | main/boards/esp-s3-lcd-ev-board-2/pin_config.h | 21 | #define GC9503V_LCD_BK_LIGHT_OFF_LEVEL !GC9503V_LCD_BK_LIGHT_ON_LEVEL |
| LOW | main/boards/esp-s3-lcd-ev-board-2/pin_config.h | 41 | |
| LOW | main/boards/esp-s3-lcd-ev-board-2/esp_lcd_gc9503.c | 1 | /* |
| LOW | main/boards/esp-s3-lcd-ev-board-2/esp_lcd_gc9503.c | 181 | // *INDENT-OFF* |
| LOW | main/boards/esp-s3-lcd-ev-board-2/esp_lcd_gc9503.c | 201 | // {0x71, (uint8_t []){0x48}, 1, 0}, |
| LOW | main/boards/esp-s3-lcd-ev-board-2/esp_lcd_gc9503.c | 221 | // {0x7b, (uint8_t []){0x08, 0x13}, 2, 0}, |
| LOW | main/boards/esp-s3-lcd-ev-board-2/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/esp-s3-lcd-ev-board-2/config.h | 21 | |
| LOW | main/boards/lichuang-dev/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/lichuang-dev/config.h | 21 | #define AUDIO_CODEC_ES7210_ADDR 0x82 |
| LOW | main/boards/lichuang-dev/config.h | 41 | #define CAMERA_PIN_PWDN GPIO_NUM_NC |
| LOW | main/boards/freenove-esp32s3-display-2.8-lcd/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/freenove-esp32s3-display-2.8-lcd/config.h | 21 | #define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR |
| LOW | main/boards/freenove-esp32s3-display-2.8-lcd/config.h | 41 | #define DISPLAY_WIDTH 320 |
| LOW | main/boards/esp-box-lite/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/esp-box-lite/config.h | 21 | #define BUILTIN_LED_GPIO GPIO_NUM_NC |
| LOW | main/boards/esp-sensairshuttle/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/esp-sensairshuttle/config.h | 21 | #define DISPLAY_CS_PIN GPIO_NUM_25 |
| LOW | main/boards/esp-vocat/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/esp-vocat/config.h | 21 | #define AUDIO_I2S_GPIO_WS GPIO_NUM_39 |
| LOW | main/boards/esp-vocat/config.h | 41 | #define DISPLAY_MIRROR_X false |
| LOW | main/boards/esp-vocat/config.h | 61 | #define UART1_TX_2 GPIO_NUM_5 |
| LOW | main/boards/doit-s3-aibox/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/doit-s3-aibox/config.h | 21 | #define BUILTIN_LED_GPIO GPIO_NUM_45 |
| LOW | main/boards/labplus-mpython-v3/config.h | 1 | |
| LOW | main/boards/labplus-mpython-v3/config.h | 21 | #define BOOT_BUTTON_GPIO GPIO_NUM_0 |
| LOW | main/boards/atk-dnesp32s3-box2-4g/config.h | 21 | #define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_48 |
| LOW | main/boards/atk-dnesp32s3-box2-4g/config.h | 41 | #define XIO_VBUS_EN (IO_EXPANDER_PIN_NUM_11) |
| LOW | main/boards/atk-dnesp32s3-box2-4g/config.h | 61 | #define LCD_PIN_D6 GPIO_NUM_4 |
| LOW | main/boards/bread-compact-wifi-lcd/config.h | 1 | #ifndef _BOARD_CONFIG_H_ |
| LOW | main/boards/bread-compact-wifi-lcd/config.h | 21 | #else |
| LOW | main/boards/bread-compact-wifi-lcd/config.h | 41 | #define DISPLAY_DC_PIN GPIO_NUM_40 |
| LOW | main/boards/bread-compact-wifi-lcd/config.h | 61 | #ifdef CONFIG_LCD_ST7789_240X320_NO_IPS |
| 499 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/download_github_runs.py | 209 | print("Error: GITHUB_TOKEN not found in environment variables.", file=sys.stderr) |
| LOW | scripts/download_github_runs.py | 287 | except Exception as e: |
| MEDIUM | scripts/download_github_runs.py | 288 | print(f"Error: {e}", file=sys.stderr) |
| LOW | scripts/release.py | 128 | except Exception as e: |
| LOW | scripts/gen_lang.py | 185 | except Exception as e: |
| MEDIUM | scripts/gen_lang.py | 186 | print(f"Error: {e}") |
| MEDIUM | scripts/build_default_assets.py | 799 | print(f"Error: Generated assets.bin not found: {image_file}") |
| MEDIUM | scripts/build_default_assets.py | 803 | print(f"Error: Failed to build assets: {e}") |
| MEDIUM | scripts/build_default_assets.py | 201 | print(f"Error: Failed to generate srmodels.bin: {e}") |
| MEDIUM | scripts/build_default_assets.py | 860 | print("Error: USE_CUSTOM_WAKE_WORD is enabled but no multinet models are selected in sdkconfig") |
| LOW | scripts/build_default_assets.py | 802 | except Exception as e: |
| LOW | scripts/build_default_assets.py | 200 | except Exception as e: |
| LOW | scripts/versions.py | 219 | except Exception as e: |
| MEDIUM | scripts/versions.py | 220 | print(f"Error uploading version info: {str(e)}") |
| LOW | scripts/ogg_converter/xiaozhi_ogg_converter.py | 186 | except Exception as e: |
| LOW | scripts/ogg_converter/xiaozhi_ogg_converter.py | 205 | except Exception as e: |
| LOW | scripts/ogg_converter/xiaozhi_ogg_converter.py | 224 | except Exception as e: |
| LOW | scripts/Image_Converter/lvgl_tools_gui.py | 245 | except Exception as e: |
| LOW | scripts/p3_tools/batch_convert_gui.py | 187 | except Exception as e: |
| LOW | scripts/p3_tools/batch_convert_gui.py | 201 | except Exception as e: |
| LOW | scripts/p3_tools/batch_convert_gui.py | 215 | except Exception as e: |
| MEDIUM | scripts/spiffs_assets/build.py | 72 | print(f"Error: Failed to generate srmodels.bin: {e}") |
| LOW | scripts/spiffs_assets/build.py | 134 | except Exception as e: |
| MEDIUM | scripts/spiffs_assets/build.py | 135 | print(f"Error loading config file {config_path}: {e}") |
| MEDIUM | scripts/spiffs_assets/build.py | 151 | print(f"Error: No src field found for emote '{emote_name}' in config") |
| LOW | scripts/spiffs_assets/build.py | 259 | except Exception as e: |
| MEDIUM | scripts/spiffs_assets/build.py | 260 | print(f"Error reading/processing layout.json: {e}") |
| MEDIUM | scripts/spiffs_assets/build.py | 391 | print(f"Error: Failed to package assets.bin: {e}") |
| MEDIUM | scripts/spiffs_assets/spiffs_assets_gen.py | 101 | print('Error: convert_path is NULL') |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 137 | except Exception as e: |
| MEDIUM | scripts/spiffs_assets/spiffs_assets_gen.py | 254 | print('An error occurred while executing LVGLImage.py:') |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 294 | except Exception as e: |
| MEDIUM | scripts/spiffs_assets/spiffs_assets_gen.py | 295 | print(f'An error occurred during conversion: {e}') |
| MEDIUM | scripts/spiffs_assets/spiffs_assets_gen.py | 305 | print('Error: Height must be a positive integer') |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 314 | except Exception as e: |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 418 | except Exception as e: |
| LOW | scripts/spiffs_assets/build_all.py | 75 | except Exception as e: |
| LOW | scripts/acoustic_check/graphic.py | 342 | except Exception as e: |
| LOW | scripts/acoustic_check/graphic.py | 418 | except Exception as e: |
| LOW | scripts/acoustic_check/main.py | 16 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/build_default_assets.py | 452 | # ============================================================================= |
| MEDIUM | scripts/build_default_assets.py | 454 | # ============================================================================= |
| MEDIUM | scripts/build_default_assets.py | 23 | # ============================================================================= |
| MEDIUM | scripts/build_default_assets.py | 25 | # ============================================================================= |
| MEDIUM | scripts/build_default_assets.py | 126 | # ============================================================================= |
| MEDIUM | scripts/build_default_assets.py | 128 | # ============================================================================= |
| MEDIUM | scripts/build_default_assets.py | 354 | # ============================================================================= |
| MEDIUM | scripts/build_default_assets.py | 356 | # ============================================================================= |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/release.py | 74 | |
| LOW | scripts/release.py | 143 | |
| LOW | scripts/release.py | 267 | |
| LOW | scripts/build_default_assets.py | 58 | |
| LOW | scripts/build_default_assets.py | 218 | |
| LOW | scripts/build_default_assets.py | 456 | |
| LOW | scripts/build_default_assets.py | 482 | |
| LOW | scripts/build_default_assets.py | 531 | |
| LOW | scripts/build_default_assets.py | 571 | |
| LOW | scripts/versions.py | 61 | |
| LOW | scripts/versions.py | 223 | |
| LOW | scripts/Image_Converter/lvgl_tools_gui.py | 195 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 212 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 576 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 787 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 839 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 875 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 978 | |
| LOW | scripts/Image_Converter/LVGLImage.py | 1287 | |
| LOW | scripts/p3_tools/convert_p3_to_audio.py | 9 | |
| LOW | scripts/p3_tools/play_p3.py | 8 | |
| LOW | scripts/p3_tools/p3_gui_player.py | 12 | |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 141 | |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 391 | |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 492 | |
| LOW | scripts/spiffs_assets/build_all.py | 80 | |
| LOW | scripts/spiffs_assets/pack_model.py | 41 | |
| LOW | scripts/acoustic_check/demod.py | 179 | |
| LOW | scripts/acoustic_check/graphic.py | 118 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/download_github_runs.py | 87 | # Check if there are more pages |
| LOW | scripts/download_github_runs.py | 254 | # Check if file already exists |
| LOW | scripts/audio_debug_server.py | 40 | # Close files and socket |
| LOW | scripts/build_default_assets.py | 225 | # Check if this is otto-gif collection |
| LOW | scripts/build_default_assets.py | 913 | # Check if we have anything to build |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 72 | # Check if convert_path is not empty |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 117 | # Check if the file already exists |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/release.py | 17 | def get_board_type_from_compile_commands() -> Optional[str]: |
| LOW | scripts/release.py | 143 | def _find_board_config_candidates(board_type: str) -> list[str]: |
| LOW | scripts/release.py | 163 | def _extract_board_config_from_sdkconfig_append(sdkconfig_append: list[str]) -> Optional[str]: |
| LOW | scripts/build_default_assets.py | 456 | def read_wakenet_from_sdkconfig(sdkconfig_path): |
| LOW | scripts/build_default_assets.py | 482 | def read_multinet_from_sdkconfig(sdkconfig_path): |
| LOW | scripts/build_default_assets.py | 531 | def read_wake_word_type_from_sdkconfig(sdkconfig_path): |
| LOW | scripts/build_default_assets.py | 571 | def read_custom_wake_word_from_sdkconfig(sdkconfig_path): |
| LOW | scripts/build_default_assets.py | 624 | def get_language_from_multinet_models(multinet_models): |
| LOW | scripts/build_default_assets.py | 709 | def get_emoji_collection_path(default_emoji_collection, xiaozhi_fonts_path, project_root=None): |
| LOW | scripts/spiffs_assets/build.py | 138 | def process_board_emoji_collection(emoji_collection_dir, target_board_dir, assets_dir): |
| LOW | scripts/spiffs_assets/build.py | 192 | def process_board_icon_collection(icon_collection_dir, assets_dir): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/audio_debug_server.py | 12 | # Create a UDP socket |
| MEDIUM | scripts/build_default_assets.py | 916 | # Create an empty assets.bin file |
| MEDIUM | scripts/spiffs_assets/spiffs_assets_gen.py | 123 | # Create the parent directories if they do not exist |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/download_github_runs.py | 17 | |
| LOW | scripts/download_github_runs.py | 19 | |
| LOW | scripts/spiffs_assets/build.py | 22 | |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 3 | |
| LOW | scripts/spiffs_assets/spiffs_assets_gen.py | 10 | |
| LOW | scripts/acoustic_check/graphic.py | 12 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | scripts/download_github_runs.py | 126 | Rename artifact according to the specified rules. Rules: - Remove "xiaozhi_" prefix - Remove hash |