Godot RAG的MCP服务器
此MCP服务器用于向Godot RAG模型提供Godot文档。
截图
使用前
使用后
MCP服务器配置
{
"mcpServers": {
"godot-rag": {
"command": "python",
"args": [
"
",
"-d",
"
",
"-c",
""
]
}
}
}设置
uv venv --python 3.12
source ./.venv/bin/activate
uv sync
cp .env.example .env.local启动步骤
# clone godot docs
python download_godot_docs.py
# convert rst to markdown
python convert_rst2md.py
# chunk markdown files
python chunker.py -i artifacts
# create vector database
python vectorizer.py -i artifacts/chunks/artifacts_chunks_SZ_400_O_20.jsonl
# python vectorizer_api.py -i artifacts/chunks/artifacts_chunks_SZ_400_O_20.jsonl -m BAAI/bge-m3
# start mcp server
python main.py -d artifacts/vector_stores/chroma_db -c artifacts_chunks_SZ_400_O_20_all-MiniLM-L6-v2
# python main_with_api.py -d artifacts/vector_stores/chroma_db -c artifacts_chunks_SZ_400_O_20_BAAI-bge-m3 -k 调试
npx @modelcontextprotocol/inspector \
uv \
--directory . \
run \
main.py \
--chromadb-path artifacts/vector_stores/chroma_db \
--collection-name artifacts_chunks_SZ_400_O_20_all-MiniLM-L6-v2使用其他模型
其他
mcp_godot_rag由以下机构索引和认证 MCP审查

