# Symvanta [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Symvanta/claude-plugin  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/symvanta-2

## Description
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.

## Tools
Capabilities this server exposes over MCP:

- **init** — Call first, with repository:"owner/name" (your checkout's GitHub remote). Binds the session to the project holding that repository and returns it as the active project with its repositories, index health, and a `usage` field (decision matrix + routing). workspace.attached=false means the checkout is NOT indexed: nothing in the answer describes it; attach it (add_repository, create_project) or work without the graph, do not route through the projects listed. Without repository: the pinned project (ref op:"use_project") or the workspace default.
- **locate** — Search/lookup. Pick a mode, or omit with a bare query to AUTO-ROUTE (text, then semantic on empty; response carries answered_by). Modes:
- text (replaces grep): literal identifier/string, one row/occurrence. queries:[...] (<=10 terms) searches several in one call (and implies this mode when mode is omitted). pathsOnly:true = "filePath:lineNumber" only (~5x cheaper). maxPerFile caps rows/file (default 5). Empty carries did_you_mean; do NOT retry reworded, use semantic.
- symbol: symbols by name/symbolPath in one repo. kind filters node kind, layer one layer. Tests last unless includeTests:true.
- semantic: vector search for symbols similar to a natural-language query (names unknown).
- file: fuzzy filename search (basename); filenames only.
- config (replaces grep for env/config keys): key/env-var usages with nearest-symbol context; queries:[...] batches several keys.
- codebase: cross-repo candidate scan; narrow with repositoryIds.
- **relate** — Graph relationship traversal via one kind (real edges, not text). Kinds (1-10 symbols; heritage/chain one):
- callers: direct callers. granularity:'file' (default) one row/file, 'site' one row/caller.
- dependencies: outgoing calls/imports.
- blast_radius: upstream impact walk (every caller, importer and referencer up to 3 hops, no per-hop sampling) + co-change siblings; risk {level,signals}. includeCrossRepo defaults ON here (off for others). blastRadiusTotalCount is the number of distinct symbols that 3-hop walk reached, not the row count: the blastRadius array is capped by expansionLimit. blastRadiusTruncated:true means the rows are a sample of that total; blastRadiusTotalAtLeast:true means the count stopped at its 10000 bound, so quote it as "N+". The walk stops at 3 hops, so it can miss impact further away; it never overcounts. Never report the number of listed rows as the impact size.
- implementers: classes implementing interfaces via heritage edges.
- heritage: full hierarchy (ancestors+descendants) of ONE type. maxDepth caps it.
- chain: call-chain paths for a node (nodeId OR selectors[0]); chain params tune the walk.
- path: shortest connection between selectors[0] (from) and selectors[1] (to). Direction-agnostic hop-labeled path; found:false when none within 6 hops.
minimal:true = {id,name,filePath,startLine}-only (~50% cheaper) on callers/dependencies/blast_radius/implementers; granularity on callers/blast_radius. Rows may carry confidence (tiers in init usage); a cross-repo callers/dependencies row joined by a SCIP moniker also carries package (the package name that bridged the repos). 0 results: call locate (mode:text), not Grep; reason:"no_edges_indexed" = no edges.
- **source** — Raw file/git access at the indexed commit, for cloud agents with no clone; with a clone prefer your own Read/Grep/git. Ops:
- read: content of filePath, whole file or slice startLine..endLine. ifHash (a prior read's hash) returns {unchanged:true}, no content. compact:true strips blank/comment-only lines.
- list: files+subdirs at path. grep: ripgrep pattern (glob/pathPrefix). tree: layout from path. stat: size/lines/language/binary for filePath. blame: authorship for filePath. diff: fromSha..toSha.
Keys: {op:"read",filePath:"src/a.ts"}, {op:"grep",pattern:"foo"}, {op:"list",path:"src"}. filePath is the file, path the directory.
Gated by the Source Access add-on; else source_access_required.
- **history** — Indexed commit history. Ops:
- commits: recent commits (metadata + file list); <=200/call, default 50. With a clone prefer git log.
- commit: one commit by sha with its diff summary (added/modified/deleted/renamed); null if outside the indexed window.
- recently_changed: files ranked by change frequency in the indexed window ("what's hot").
- **library** — Library catalog lookups. Ops:
- packages: list indexed npm packages (specifier, ecosystem, owner/name, indexed-at, sha). Tenant-scoped, no projectId.
- version: one package's resolved version for a project (sha, version, dep type, indexed-at, status indexed|indexing|failed|not_found). "indexing" means a job for that revision is in flight, so retrying later converges; "failed" carries a reason and does not change on its own.
- **ref** — Session-scoped branch / working-tree overlay / project binding. Ops:
- use: pin a repository's reads to a branch (latest indexed revision). Branch must be tracked+indexed (open a PR, or add on the dashboard); else "indexing_in_progress". commitSha overrides.
- clear: remove the pin, revert to default.
- index_working_tree: overlay UNCOMMITTED edits (changedFiles path+content, optional deletedPaths/baseSha) on a short-lived synthetic revision pinned here; find_node/locate/relate reflect them, source and locate mode:semantic do NOT. Cap 100 files/256KB.
- use_project: bind this session to projectId (from init.otherProjects / list_projects / create_project) so calls without projectId resolve there. init with repository:"owner/name" sets the same binding from the checkout's remote.
- clear_project: drop the binding, back to the workspace default project.
- **adr** — Architecture decision records: the WHY behind code, anchored to a symbol/file/project. Survive reindexes; find_node attaches a node's decisions. Ops:
- record: needs title+decision. Anchor with repository+symbolPath or +filePath; omit both for project-wide. Optional context, consequences, status.
- list: records for a project, filter by repository/symbolPath/filePath/status.
- update: needs id; status:"superseded"+supersededById, or "deprecated".
- **diff_impact** — Impact of a diff between two indexed revisions of one repo (base..head): changed files + symbols, union blast radius (layers + cross-repo fallout), affected endpoints, test suites, and co-change reminders. Replaces per-symbol relate (kind:blast_radius) loops before merging. Defaults: head = session's effective revision, base = previous indexed. For UNCOMMITTED edits, run ref (op:"index_working_tree"), then call with no shas.
- **estimate_scope** — Pre-flight estimate before graph traversal: coarse count of files a task likely touches and whether it spans layers (common/browser/node/electron-main/...) or repositories. Decides single-file edit vs consulting the graph. Heuristic, from symbol-name + text matches.
- **list_projects** — List all projects with indexing summaries. Find a project by name or check which exist.
- **list_repositories** — List repositories in a project. Find repository names to scope a query to one repo.
- **list_file_symbols** — List symbols in one file (name + kind + line bounds). Step 1 of the two-step read: get line bounds, then pass startLine/endLine to source (op:read) for that slice only (~4-15x fewer tokens). For one symbol + signature, use find_node {symbol, filePath}.
- **map** — Token-efficient repo (or subtree) skeleton: directory tree with each file's classes (methods in parens), functions, and HTTP endpoints, from the graph. Orient before drilling in. Scope with "path", cap with "maxDepth", density:"full" adds properties. view:"architecture" instead returns a module map (Louvain clusters with hubs, paths and cross-module coupling), plus namedModules/totalModules: a module NAME comes from a generated summary and is provisional, its id (the member-set hash in the header) is the stable key, so pin modules by id and re-read names rather than caching them.
- **list_tests_for** — Test suites and cases whose suite name matches a symbol name (case-insensitive substring). Call before adding tests to see existing coverage and mirror its shape.
- **quick_lookup** — Fast substring lookup of symbol DEFINITIONS by name: rows {name, kind, filePath, startLine, repositoryName} (displayName only when distinct from name), no ranking, no semantic. Cheaper alternative to locate (mode:symbol) for latency-sensitive pre-fetch (grep-augment hook); interactive search should prefer locate/find_node. Reads the latest indexed revision, no ref pin.
- **freshness** — Returns lastIndexedSha, lastIndexedAt, and the current remote HEAD sha for a repository: detect index drift from remote. Reports what Symvanta knows, not local git. currentRemoteSha is null when no GitHub credential is configured. Echoes the active ref pin (pinnedBranch, pinnedSha).
- **index_health** — Per-project index health. pendingLibraryVersions: cross-repo specifiers still indexing (an empty result may mean "not indexed yet", not "not in code"); call when a query is surprisingly empty. A row with status "skipped" is never going to arrive (a dev or optional dependency, which the catalog does not index) and status "failed" means discovery found no source, so only "indexing" is worth waiting on. architecture: per-repo Louvain module count + modularity Q (low Q = tangled), plus circular-dependency and mutually-recursive-symbol counts (inspect via map view:"architecture"). versionDrift: joined cross-repo SCIP edges whose consumer-pinned package version differs from the sibling's current version (package, pinned vs current, edge count). externalsCoverage: per-repo count of external references joined onto a sibling definition vs left as materialized stubs. unindexableRepositories: repos whose last index produced no graph and left a status (no_default_branch = the remote has no resolvable default branch, e.g. an empty repo; awaiting_upload = an upload-provider repo with no zip yet; remote_head_unresolvable = the remote could not be reached to resolve its head, so this is a network or credential problem, not a repository one), with the worker's log line as indexStatusDetail; explains a silently-empty repo. degradedRepositories: repos that DID index but lost a derived artifact (community_detection_skipped = Louvain clustering did not run, so map view:"architecture" has no modules; raise COMMUNITY_EDGE_CEILING or set COMMUNITY_DETECTION=true, then reindex). Both carry a human-readable reason.
- **find_http_route** — Resolve an HTTP route by path + optional method to endpoint + handler (filePath + line bounds). Use instead of grep/locate for URL paths: follows framework router metadata (Express, Fastify, Hono, Laravel, FastAPI, etc.) and resolves dynamic segments, prefix groups, and middleware-mounted routers text search misses.
- **find_node** — Resolve 1-10 symbols to filePath + line bounds + signature. selectors: array keyed by symbol (bare name) / symbolPath / filePath / nodeId; a flat query/name/single field also works. includeSource=true adds the excerpt, includeSummaries=true AI summaries. A node from a SCIP-indexed package also carries scip_package_name (and scip_package_version / scip_manager when known). For a class/interface/struct/protocol it carries a compact heritage field (<=5 ancestors, <=20 descendants, omitted when empty); includeHeritage:false skips it, includeCrossRepo:true walks cross-repo heritage. {resolved:false, candidates} = no confident match.
- **ask_codebase** — Synthesis Q&A for behavior/architecture questions: answer + citations in one call. HEAVY (~2-4 s, ~3-5 k tokens): prefer context, find_node, or locate when they suffice. scope:"repo" (default) = ONE repo; scope:"all" = cross-repo (repositoryIds narrows, omit spans all; rejects repository). If sufficient_to_answer=true, answer without further tool calls. commitSha pins a revision.
- **add_repository** — Attach a GitHub repository to a project (owner + repo_name; clone URL derived; projectId defaults to the bound / default project). Public repos need nothing else. Private repos need installation_id from list_installations (a GitHub App installation that covers the repo) or a workspace PAT saved on the dashboard; without either the attach is refused (private_repository_needs_credential) instead of failing on the queued clone. Idempotent. First attach dispatches an indexing job; response carries visibility, credential ("installation" | "pat" | null), indexing_status ("queued" | "already_indexed") and indexing_job_id to poll. Needs mcp:admin.
- **create_project** — Create a project in the workspace (name; slug derived and made unique). Needs mcp:admin; plan project caps apply (plan_limit_exceeded). Then attach repositories with add_repository { projectId, owner, repo_name } and bind the session with ref op:"use_project" (or init with the checkout's repository once attached).
- **list_installations** — GitHub App installations connected to this workspace and the repositories each can reach (private included). Use before add_repository for a private repository: pass the installation's id as installation_id. pat_configured says whether a workspace PAT exists as the fallback credential. Empty = connect the GitHub App on the dashboard (Project > Repositories). An installation whose GitHub call failed carries error and an empty list.
- **reindex_repository** — Dispatch a reindex job for an already-attached repository (repositoryId from list_repositories / add_repository). Optional commit_sha pin. force:true re-applies the current parser even when unchanged at HEAD: it bypasses the per-file hash-skip AND re-runs the SCIP indexer subprocesses (no same-sha .scip cache serve), so a parser fix inside a SCIP runner, an external-moniker re-pin, or a toolchain upgrade takes effect without a version bump.
- **context** — First-touch task orientation. Pass a natural-language task; returns the top 5 relevant files with their symbols and best-matching snippets in one call (~1-1.5k tokens, ~500 ms, no LLM). Replaces chaining locate (text) + locate (semantic) + list_file_symbols. Known symbol: find_node/locate. Synthesized explanation: ask_codebase.
- **bundle** — Run up to 10 independent tool calls in parallel in one round-trip. Calls share the bundle-level project/repository scope unless a call sets its own args.repository, which scopes that call alone. Supported: locate (args.mode text|symbol|semantic|file|config, not codebase), relate (kind:callers only), find_node, list_file_symbols, find_http_route. Returns results in input order; unsupported tool names return {error}.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "symvanta": {
    "url": "https://mcp.symvanta.com/mcp"
  }
}
```

## Documentation

## What the Symvanta MCP server does

The Symvanta MCP server gives Claude Code access to a Symvanta-indexed codebase through MCP. It is intended for questions that depend on code relationships rather than text matches: identifying exact callers, following dependencies, locating HTTP route handlers, finding tests for a symbol, and estimating the impact of an edit. The graph can also report repository status, recent changes, functional modules, PageRank hubs, coupling, and load-bearing functions.

The plugin adds slash commands for common workflows. `/symvanta:ask` sends behavior questions to `ask_codebase` and includes file citations. `/symvanta:trace` follows calls and dependencies, while `/symvanta:blast` checks a symbol's blast radius. Other commands cover route lookup, architecture, scope estimates, branch pinning, working-tree indexing, test discovery, history, and connection status. `/symvanta:setup` writes routing guidance into `CLAUDE.md` or `CLAUDE.local.md`.

## How it works

The plugin registers the MCP endpoint and injects standing context at session start so Claude Code can choose graph operations instead of relying only on shell search. The default endpoint is `https://mcp.symvanta.com/mcp`. A session-start hook reads the checkout's Git remote and supplies its `owner/name` to the graph initialization step, associating reads with the repository in that checkout.

Optional augment hooks run locally around selected Claude Code tools. They can add indexed definitions to `Grep` and `Glob`, show a symbol's impact before `Edit` or `Write`, provide a code-file skeleton and anchored architecture records on the first `Read`, suggest graph candidates after an empty grep, and resolve identifier-shaped terms in prompts. These hooks only add context; failures, timeouts, missing tokens, or unattached checkouts allow the original tool call to proceed.

The hooks send identifier terms, matched symbol names, repository-relative paths, and the checkout's GitHub remote to Symvanta. They do not send file contents or the full prompt. Local caches, first-read markers, and hook logs are stored below `~/.symvanta/`.

## Setup and configuration

Install from Claude Code with the Symvanta marketplace URL, then install `symvanta@symvanta`. OAuth sign-in occurs on the first MCP connection. Cloud users can keep the default configuration. For another deployment, set the plugin's `mcpUrl` to the complete endpoint, including `/mcp` and excluding a trailing slash. Static bearer-token authentication is available for headless use, but it is configured outside this plugin.

The Symvanta MCP server can use the token already stored by Claude Code. Alternatively, `SYMVANTA_MCP_TOKEN` supplies a token directly. Restart Claude Code after plugin updates or environment-variable changes. `SYMVANTA_AUGMENT=off` disables the augmenter family; individual switches such as `SYMVANTA_EDIT_AUGMENT=off` and `SYMVANTA_READ_AUGMENT=off` disable selected behaviors.

## Limitations and notes

This repository provides a Claude Code plugin rather than a general client setup guide. The documented commands, hooks, and installation flow are therefore specific to Claude Code. Graph results depend on the target repository being indexed and attached to a Symvanta project. A checkout without an applicable project or Git remote keeps the augment hooks silent.

The plugin does not replace ordinary tool execution: Bash and tools without a listed hook run unchanged. Working-tree support is explicit; use `/symvanta:working-tree` to overlay uncommitted edits. After `/plugin update`, restart Claude Code before expecting the new hook code or configuration to take effect. The Symvanta MCP server's endpoint must be precise, because a bare host or a URL with a trailing slash will not connect.

_Full upstream README: https://allmcps.com/mcp/symvanta-2/readme_

