mcp调试完成

This commit is contained in:
2026-01-20 01:51:39 +08:00
parent 7c99e67a7f
commit 860ada3334
5 changed files with 236 additions and 65 deletions

View File

@@ -6,6 +6,15 @@
完成wiki网页爬取和向量化与知识库查找
mcp调试命令
```bash
npx @modelcontextprotocol/inspector uv run backend/mcp_server.py
```
需要nodejs环境
打开页面后在Environment Variables中添加`PYTHONIOENCODING = utf-8`来防止编码问题(视具体情况而定,如果可以正常运行,也可以不加)
## 当前状况
1. chunk分段逻辑根据返回的markdown进行分割按照#、##进行标题的分类增加JSONB格式字段meta_info有下面两个字段分别可以用于数据库查询和LLM上下文认知资料来源