symbiont
This server provides AST-aware code navigation, refactoring, and architecture enforcement for TypeScript/JavaScript projects via MCP.
get_file_outline— inspect functions, classes, interfaces, types, enums, and variables with line ranges and signatures.find_all_usages— trace every exact reference, import, definition, and call-site across the codebase.rename_symbol— perform AST-safe renames across consumers with unified diffs and dry-run previews.check_architecture_rules— validate import boundaries, return-type contracts, and circular-dependency rules from.symbiontrc.yaml.get_dependency_graph— build module dependency trees and detect circular dependency cycles.set_workspace_root— set or re-index the active project workspace root.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@symbiont find all usages of the `createUser` function"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
symbiont-mcp
AST-aware code navigation, refactoring engine, and architectural rule checker for the Model Context Protocol (MCP).
Features
AST file outlines (
get_file_outline): inspect functions, classes, methods, interfaces, types, and variables with line ranges and type signatures.Symbol tracing (
find_all_usages): resolve definitions, call sites, imports, and type references across codebases using TypeScript compiler bindings.AST renaming (
rename_symbol): rename symbols across referencing files with unified diff generation and dry-run support.Architectural invariant checking (
check_architecture_rules): validate import boundaries and return-type contracts against.symbiontrc.yaml.Dependency graph generation (
get_dependency_graph): map module import trees and detect circular dependency cycles.
Related MCP server: Synapse
Installation
git clone https://github.com/DRNZY/symbiont-mcp.git
cd symbiont-mcp
npm install
npm run buildMCP configuration
Add to your MCP configuration file (mcp_config.json or client settings):
{
"mcpServers": {
"symbiont": {
"command": "node",
"args": ["/path/to/symbiont-mcp/dist/index.js"]
}
}
}Tools reference
get_file_outline:filePath: string,workspaceRoot?: stringfind_all_usages:symbolName: string,entryFile?: string,workspaceRoot?: stringrename_symbol:oldName: string,newName: string,targetFile: string,line?: number,dryRun?: boolean,workspaceRoot?: stringcheck_architecture_rules:configPath?: string,workspaceRoot?: stringget_dependency_graph:workspaceRoot?: stringset_workspace_root:workspaceRoot: string
Configuration (.symbiontrc.yaml)
rules:
- id: no-db-in-ui
from: "src/components/**"
disallow_imports:
- "src/server/db/**"
- "drizzle-orm"
- "@prisma/client"
message: "UI components must not import directly from the database layer."
severity: error
- id: enforce-zod-actions
files: "src/actions/**"
require_named_export_type: "z.infer<*>"
message: "Server actions must return a z.infer typed result."
severity: warning
- id: disallow-cycles
files: "src/**"
disallow_circular_dependencies: true
message: "Circular dependency detected."
severity: errorCLI usage
# Check architecture rules
symbiont-mcp check [.symbiontrc.yaml]
# Inspect symbol outline
symbiont-mcp outline src/components/Button.tsx
# Trace usages
symbiont-mcp usages calculateTotal
# View dependency graph
symbiont-mcp graphTesting
npm testLicense
MIT
Available Tools
6 toolscheck_architecture_rulesA
Evaluates the dependency graph against declarative architectural rules (.symbiontrc.yaml) and returns actionable boundary violations.
Inputs: configPath, workspaceRoot.
find_all_usagesA
Performs deterministic AST traversal to return every exact reference, import, definition, and call-site across the codebase.
Inputs: symbolName (required), entryFile, workspaceRoot.
get_dependency_graphA
Builds a module dependency graph, tracking direct imports, dependents, and circular dependency cycles.
Inputs: workspaceRoot.
get_file_outlineA
Returns high-level symbol declarations (functions, classes, interfaces, types, enums, variables) with line ranges and signatures without dumping raw file bodies.
Inputs: filePath (required), workspaceRoot.
rename_symbolA
Applies syntactically safe, AST-level renames across all consumers and returns unified diffs.
Inputs: newName (required), oldName (required), targetFile (required), line, +2 more.
set_workspace_rootA
Sets or re-indexes the active project workspace root directory.
Inputs: workspaceRoot (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool addresses a clearly distinct concern: per-file symbol outlines, module dependency graphs, exact usages, refactoring, architecture rule validation, and workspace management. Related tools like get_dependency_graph and check_architecture_rules are separated by build vs. evaluate, preventing confusion.
All tool names follow a consistent snake_case verb_object pattern (get_file_outline, rename_symbol, set_workspace_root, etc.). There are no vague verbs or mixed casing conventions.
Six tools is well-scoped for a code intelligence and refactoring server. Each tool earns its place and covers a distinct phase without redundancy.
The set covers the core lifecycle: workspace setup, navigation, dependency analysis, usage discovery, renaming, and architecture validation. Minor conveniences like a get_workspace_root or deeper symbol-detail lookup are absent, but they are not required for the main workflows.
Related MCP Connectors
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Shared context for your codebase: a hosted code knowledge graph over MCP. Free plan, OAuth sign-up.
Repository knowledge graph MCP server for codebase understanding and debugging.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables parsing, indexing, and querying source code as structured knowledge, providing code exploration, spec generation, and migration tools via 20 MCP tools.MIT
- FlicenseNot gradedqualityDmaintenanceProvides structural code intelligence via 26 MCP tools, enabling AI assistants to query code symbols, dependencies, and call graphs accurately without file-pasting.-
- AlicenseAqualityDmaintenanceBridges MCP and LSP to enable semantic code analysis, including go-to-definition, find references, hover info, and function call relationship checks.4ISC
- FlicenseNot gradedqualityDmaintenanceProvides code intelligence by indexing source code into SQLite and offering MCP tools for symbol search, flow tracing, and context retrieval to assist with code navigation and understanding.-