Skip to main content
Glama
DarkLordGeo

Programmatic

by DarkLordGeo

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
check

An 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 Service

Programmatic 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 test

Architecture

AI coding agent
       ↓
Programmatic MCP
       ↓
Programmatic API
       ↓
TypeScript Language Service
       ↓
TypeScript / TSX

See 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. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    -
  • A
    license
    B
    quality
    D
    maintenance
    Exposes 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.
    9
    146
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    AST-aware TypeScript/JavaScript codebase exploration for AI agents, providing high-precision symbol resolution, reference finding, and structural analysis via MCP tools.
    199
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI coding agents to interact with TypeScript projects through compiler-level code intelligence, providing tools for navigation, type information, diagnostics, refactoring, and semantic search.
    29
    342
    3
    Apache 2.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DarkLordGeo/programmatic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server