Programmatic
Provides structural source code intelligence for TypeScript/TSX projects, enabling agents to list files, inspect files, find symbols and references, rename symbols, and run type checks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Programmatic
A structural programming interface for source code, designed for AI coding agents.
Today, agents edit code as text: search, read files, make edits, re-check, and hope they didn't miss a reference.
Programmatic gives agents structural code intelligence, turning operations like "rename this symbol" into semantic operations instead of string manipulation.
Status: Phase 1. Programmatic currently provides a TypeScript/TSX structural engine and an MCP server for AI coding agents.
What it does
import { openProject } from "@programmatic/typescript";
const project = openProject("./example-project");
project.inspectFile("src/UserCard.tsx");
project.findSymbol("UserCard");
project.findReferences("UserCard");
project.renameSymbol("UserCard", "ProfileCard");
project.check();
project.save();MCP tools
list_files
inspect_file
find_symbol
find_symbols
find_references
rename_symbol
checkAn agent can use these directly instead of reconstructing code structure through grep, file reads, and manual edits.
Related MCP server: TypeScript LSP MCP
Why structural?
Traditional
Read → Search → Inspect → Edit → Re-read → Fix → Type-check
Programmatic
Agent → Structural operation → TypeScript Language ServiceProgrammatic uses the TypeScript Language Service for semantic resolution and reference finding, then applies minimal text edits to preserve the original source.
Renames understand scopes, imports, exports, JSX, and references while leaving comments, strings, and unrelated identifiers untouched.
Benchmark
Initial evaluation against text-based Claude Code workflows on Zod v3.23.8:
Metric | Programmatic | Raw text |
Pass rate | 100% | 88% |
Avg. tokens | 133k | 560k |
Avg. calls | 4.4 | 11 |
Avg. time | 14s | 79s |
Avg. cost | $0.096 | $0.280 |
For these rename tasks, the raw workflow used approximately 4.2× more tokens, 2.5× more tool calls, 5.6× more time, and 2.9× more cost.
These are initial results from a single repository and model.
See docs/mcp-hands-on-eval.md for the methodology and docs/battle-test-report.md for engine testing.
Install
npm install
npm run build
npm testArchitecture
AI coding agent
↓
Programmatic MCP
↓
Programmatic API
↓
TypeScript Language Service
↓
TypeScript / TSXSee docs/api.md and docs/architecture-decision.md.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Coding agents in multi-service codebases routinely rebuild existing helpers, trust stale type definitions, and modify API contracts without knowing who consumes them. Carrick solves this by indexing your entire TypeScript ecosystem across service and repository boundaries. By integrating deeply with the TypeScript compiler, Carrick traces every route, type, and cross-service call while recording function behaviour so agents search by intent rather than name. Delivered via MCP for AI agents and LSP for IDEs, Carrick ensures models see existing endpoints and utilities before generating new code. The scanner is source-available and runs from your CLI or CI pipeline.
Stateless TS/JS compiler facts for agents: references, imports, impact. No repo index or OAuth.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables querying and analyzing code relationships by building a lightweight graph of TypeScript and Python symbols. Supports symbol lookup, reference tracking, impact analysis from diffs, and code snippet retrieval through natural language.MIT
- AlicenseBqualityDmaintenanceExposes TypeScript Language Server Protocol functionality to AI agents, enabling them to query types at specific positions, find definitions and references, get diagnostics, run type tests, and type-check inline code just like in an IDE.9297 npm3MIT
- AlicenseNot gradedqualityCmaintenanceAST-aware TypeScript/JavaScript codebase exploration for AI agents, providing high-precision symbol resolution, reference finding, and structural analysis via MCP tools.120 npmMIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to interact with TypeScript projects through compiler-level code intelligence, providing tools for navigation, type information, diagnostics, refactoring, and semantic search.29179 npm4Apache 2.0