Integrate

Connect a coding agent through local MCP

Expose scans, recommendations, repo maps, rules, and reports to an MCP-compatible coding tool over stdio.

Last updated 3 sections
EXPECTED OUTCOME

A coding agent can request compact TCalc context while source processing stays on the local machine.

Before you begin

  • A built TCalc CLI
  • An MCP client with stdio server support
01

Generate a client configuration

TCalc can generate configuration for Cursor and Continue, and the same stdio command works with Claude Desktop, Claude Code, Cline, Roo, and generic MCP clients. Generate the file for the workspace so TCalc can set the allowed root explicitly.

pnpm cli mcp-config --target cursor
pnpm cli mcp-config --target continue --output continue-mcp.yaml
02

Available capabilities

The experimental server exposes scan_workspace, recommend_models, create_repo_map, generate_agent_rules, generate_report, and validate_model_catalog. It also provides compact workspace and model-catalog resources plus a prompt for optimizing an agent against a goal and token budget.

Repo maps are structural and do not return full source file bodies. Risky files are surfaced by path only. The server does not execute shell input or fetch remote URLs as part of normal tool handling.

03

Run and secure the server

  1. Start the server with pnpm cli mcp or the compiled wma-mcp binary.
  2. Keep stdio attached to the client process; the MVP has no HTTP or hosted transport.
  3. Set the workspace as the allowed root and keep generated client configuration out of shared secrets.
  4. Restart the server when you want to clear its in-memory scan state.