mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-13 19:07:10 +00:00
2c01a89b28
Adds graphify/mcp_ingest.py — extracts MCP server configurations into the knowledge graph. Captures server nodes, NuGet/npm/pip package refs, commands, env var requirements, and inter-server edges. Dispatched by filename before the suffix lookup so generic .json extraction is unaffected. Env values are discarded to prevent secret leakage. File size capped at 1 MiB. 29 tests. Fixes: server_count budget now checked after validity guard so invalid entries don't consume capacity; removed misleading uv run docstring example. Co-Authored-By: adityachaudhary99 <adityachaudhary99@users.noreply.github.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
622 B
JSON
27 lines
622 B
JSON
{
|
|
"mcpServers": {
|
|
"filesystem": {
|
|
"command": "npx",
|
|
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp/workspace"],
|
|
"env": {
|
|
"FILESYSTEM_ROOT": "/tmp/workspace"
|
|
}
|
|
},
|
|
"fetch": {
|
|
"command": "uvx",
|
|
"args": ["mcp-server-fetch"]
|
|
},
|
|
"github": {
|
|
"command": "npx",
|
|
"args": ["-y", "@modelcontextprotocol/server-github@0.6.2"],
|
|
"env": {
|
|
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_PLACEHOLDER_NOT_A_REAL_TOKEN"
|
|
}
|
|
},
|
|
"time": {
|
|
"command": "uvx",
|
|
"args": ["mcp-server-time", "--local-timezone=UTC"]
|
|
}
|
|
}
|
|
}
|