skip to content
cint

cint mcp: model context protocol server

cint mcp (MCP-P.1, checked against cint 0.2.0, compiler identity d6ebe30d604346afe4a7912c5d6f3ce2b9d401641d361772892b44b9292609ff) gives coding agents direct access to the cint specification editions, diagnostic and fault definitions, verified recipes, and local execution and debugging tools.

Two transports serve the same public corpus:

  1. The local stdio server (cint mcp) is part of the C17 toolchain (cint-mcp alongside cint, cint-interp, cint-workbench, cint-explain, and cint-debug); it runs documentation queries in memory and executes .ci snippets on cpu-sir-interp or cpu-c17.
  2. The read-only static HTTP endpoint (https://integerc.dev/mcp) serves pre-rendered static JSON chunks (/mcp/index.json and /mcp/chunks/<id>.json) over Streamable HTTP, with every response between 0.5 and 2 KB.

quick setup

1. local toolchain (cint mcp over stdio)

Add cint mcp to your client configuration (mcp_config.json, .cursor/mcp.json, or .mcp.json):

{
  "mcpServers": {
    "cint": {
      "command": "cint",
      "args": ["mcp"]
    }
  }
}

2. remote endpoint (https://integerc.dev/mcp)

Point any Streamable HTTP client at https://integerc.dev/mcp:

{
  "mcpServers": {
    "cint-docs": {
      "url": "https://integerc.dev/mcp"
    }
  }
}

/.well-known/mcp.json and /llms.txt publish the discovery metadata.

tools

ToolAvailable onWhat it does
cint_search_docslocal + remoteSearch across SPEC-00P.2 to SPEC-09P.1, GLOSSARY-P.2, ERRATA, and CU-000.2 to CU-401.2
cint_get_doclocal + remoteRetrieve one specification or lesson chunk by ID
cint_lookup_diagnosticlocal + remoteExplain any compile diagnostic (C1001 to C9102) or runtime fault (E_OVERFLOW to E_ASSERT) with before/after fixes
cint_get_recipelocal + remoteFetch a verified 0.2.0 .ci recipe (fixed-point-trig, fixed-point-ln-sqrt, wide-i1024-scaling, svg-generator, fnv1a-digest, money-ledger, kernel-double-buffer) with its receipt digest
cint_list_curriculumlocal + remoteList the cint university lessons (CU-000.2 to CU-401.2)
cint_evallocal (cint mcp)Compile .ci source with cintc and execute on cpu-sir-interp, returning stdout, SHA-256 digest, fuel consumed, or decoded fault record
cint_generatelocal (cint mcp)Run a .ci generator program and write its exact stdout bytes to an output file (for SVG, LUT, or telemetry generation)
cint_checklocal (cint mcp)Validate .ci source with cint emit-c --json and attach fix examples to every diagnostic
cint_runlocal (cint mcp)Execute a .ci program on cpu-c17 or cpu-sir-interp with optional --receipt
cint_testlocal (cint mcp)Run test and expect_fault blocks via cint test --json
cint_explainlocal (cint mcp)Inspect SIR operation counts, fuel charges, and effect classes (pure vs observe) via CINT-EXPLAIN-1
cint_debuglocal (cint mcp)Run cint debug locate or cint debug diff to localize a fault or compare cpu-sir-interp against cpu-c17

resources

URIContent
cint://manifestEdition hashes (SPEC-00P.2 to SPEC-09P.1), CU-000.2 to CU-401.2, and compiler identity d6ebe30d...2609ff
cint://from-cCU-000.2: cint for C programmers
cint://from-pythonCU-000.2: cint for Python and NumPy programmers
cint://cheat-sheetCondensed cint 0.2.0 syntax, type, built-in, and formatting reference
cint://refusalsSPEC-09P.1 clause 12 table of constructs refused with C9102 in cint 0.2.0