@specgraph/mcp
v0.5.1
Published
MCP server for validating, querying, and editing Spec Graph repositories.
Downloads
489
Maintainers
Readme
@specgraph/mcp
Node.js MCP server for Spec Graph repositories.
Usage
npx @specgraph/mcp --repo-dir /path/to/repoEnvironment variables
SPECGRAPH_MCP_SCHEMA_DIR: loadgraph.schema.jsonandnode.schema.jsonfrom a local directory.SPECGRAPH_MCP_SCHEMA_BASE_URL: fetch schemas from an alternate base URL.SPECGRAPH_MCP_CACHE_TTL_MS: cache TTL for loaded graphs (default:1500).SPECGRAPH_MCP_DEFAULT_SPECGRAPH_VERSION: default graph version forinit_specgraph(default:1.0.0).
Key query tools
get_upstream_context(alias:get_affecting_nodes): all upstream nodes that influence a target node, with reason labels.list_dependencies: directdepends_ondependencies.list_dependencies_full: transitive dependency closure with normative layer-propagated guidance and informational-only dependency context.get_effective_constraints: direct + inherited constraining nodes plus transitive layer-originated propagation.get_group_subgraph: grouping-node (featureorlayer) subgraph traversal.
