Godot RAG
Fornece documentação do Godot para um modelo RAG usando um banco de dados vetorial.
GitHub
28
Experimente este MCPPatrocinadoDocumentação
Um servidor MCP para Godot RAG
Este servidor MCP é usado para fornecer documentação do Godot ao modelo Godot RAG.
Captura de tela
Antes de usar

Depois de usar

Configuração do servidor MCP
{
"mcpServers": {
"godot-rag": {
"command": "python",
"args": [
"<path to the server script 'main.py'>",
"-d",
"<path to the chroma_db on your computer>",
"-c",
"<name of the collection in the chroma_db>"
]
}
}
}
Configuração
uv venv --python 3.12
source ./.venv/bin/activate
uv sync
cp .env.example .env.local
Etapas de inicialização
# 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 <your openai api key>
Depuração
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
Usar Outro Modelo
Outros
mcp_godot_rag é indexado e certificado por MCP Review