
Scaffold
@Beer-Bears
Scaffold について
Scaffold is a specialized RAG system that transforms entire codebase into a living knowledge graph, capturing the deep structural relationships between files, classes, and functions. This provides AI agents with the crucial context to accurately understand, maintain, and reason a
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"Scaffold": {
"command": "docker",
"args": [
"run",
"--rm",
"--name",
"scaffold-mcp",
"-p",
"8000:8080",
"-v",
"${PROJECT_PATH}:/app/codebase",
"-e",
"CHROMA_SERVER_HOST=${CHROMA_SERVER_HOST}",
"-e",
"CHROMA_SERVER_PORT=${CHROMA_SERVER_PORT}",
"-e",
"CHROMA_COLLECTION_NAME=${CHROMA_COLLECTION_NAME}",
"-e",
"NEO4J_USER=${NEO4J_USER}",
"-e",
"NEO4J_PASSWORD=${NEO4J_PASSWORD}",
"-e",
"NEO4J_URI=${NEO4J_URI}",
"-t",
"ghcr.io/beer-bears/scaffold:latest"
],
"env": {
"CHROMA_SERVER_HOST": "<CHROMA_HOST>",
"CHROMA_SERVER_PORT": "<CHROMA_PORT>",
"CHROMA_COLLECTION_NAME": "scaffold_data",
"NEO4J_USER": "<NEO4J_USER>",
"NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
"NEO4J_URI": "bolt://<NEO4J_USER>:<NEO4J_PASSWORD>@<NEO4J_HOST>:NEO4J_PORT>",
"PROJECT_PATH": "<PATH_TO_YOUR_PROJECT>"
}
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Scaffold?
Scaffold is a specialized Retrieval-Augmented Generation (RAG) system that provides deep, structural understanding of large codebases to LLMs and AI agents. It transforms source code into a living knowledge graph, enabling precise, context-aware interactions. This MCP server allows clients like Cursor to interface with the Scaffold knowledge graph to construct, maintain, and reason about complex software projects.
How to use Scaffold?
First, run the required database dependencies (Neo4j and ChromaDB) in Docker on a shared network. Then, configure your MCP client (e.g., mcp.json in Cursor) with a Docker command and environment variables that point to your databases and the absolute path to your codebase. The server exposes a single tool get_code_entity_information that can be invoked from the AI agent.
Key features of Scaffold
- Graph-Based RAG: Represents codebases as interconnected graphs of files, classes, and functions.
- Living Knowledge Base: Keeps the AI's understanding synchronized with code structure.
- Eliminate Context Blindness: Provides project-specific architecture and logic to agents.
- Precise Context Injection: Delivers targeted information about code entities.
- Hybrid Search: Combines graph traversal with vector search for comprehensive context.
Use cases of Scaffold
- Ask an AI agent what a specific class (e.g.,
PaymentService) does. - Find the source code and relationships of a particular function (e.g.,
save_graph_to_db). - Understand what a code entity like
FileNodeis and which other methods use it.
FAQ from Scaffold
What are the runtime dependencies for Scaffold?
Scaffold requires Neo4j and ChromaDB to be running in Docker on a shared network before the MCP server container starts.
How do I fix a "Connection Refused" error?
Ensure the database containers (scaffold-neo4j and scaffold-chromadb) are running and all three containers are on the same Docker network. Also verify that the user, password, and hostnames in the environment variables match the running databases.
Why does the server report "File not found"?
The PROJECT_PATH environment variable must be an absolute path on your host machine. Relative paths (like . or ~/) may not work correctly.
Where does Scaffold store its data?
Data is stored in the Neo4j graph database and ChromaDB vector store, both running in Docker containers with persistent volumes (neo4j_data and chroma_data).
What transport does Scaffold use?
Scaffold runs as a Docker container that exposes a port (8000 mapped to container port 8080) for MCP communication over HTTP.
「開発者ツール」の他のコンテンツ
DevDocs by CyberAGI 🚀
cyberagiincCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App
sentry-mcp
getsentryAn MCP server for interacting with Sentry via LLMs.
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Smithery CLI
smithery-aiInstall, manage and develop MCP servers and skills for agents
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
コメント