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:
- The local stdio server (
cint mcp) is part of the C17 toolchain (cint-mcpalongsidecint,cint-interp,cint-workbench,cint-explain, andcint-debug); it runs documentation queries in memory and executes.cisnippets oncpu-sir-interporcpu-c17. - The read-only static HTTP endpoint (
https://integerc.dev/mcp) serves pre-rendered static JSON chunks (/mcp/index.jsonand/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
| Tool | Available on | What it does |
|---|---|---|
cint_search_docs | local + remote | Search across SPEC-00P.2 to SPEC-09P.1, GLOSSARY-P.2, ERRATA, and CU-000.2 to CU-401.2 |
cint_get_doc | local + remote | Retrieve one specification or lesson chunk by ID |
cint_lookup_diagnostic | local + remote | Explain any compile diagnostic (C1001 to C9102) or runtime fault (E_OVERFLOW to E_ASSERT) with before/after fixes |
cint_get_recipe | local + remote | Fetch 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_curriculum | local + remote | List the cint university lessons (CU-000.2 to CU-401.2) |
cint_eval | local (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_generate | local (cint mcp) | Run a .ci generator program and write its exact stdout bytes to an output file (for SVG, LUT, or telemetry generation) |
cint_check | local (cint mcp) | Validate .ci source with cint emit-c --json and attach fix examples to every diagnostic |
cint_run | local (cint mcp) | Execute a .ci program on cpu-c17 or cpu-sir-interp with optional --receipt |
cint_test | local (cint mcp) | Run test and expect_fault blocks via cint test --json |
cint_explain | local (cint mcp) | Inspect SIR operation counts, fuel charges, and effect classes (pure vs observe) via CINT-EXPLAIN-1 |
cint_debug | local (cint mcp) | Run cint debug locate or cint debug diff to localize a fault or compare cpu-sir-interp against cpu-c17 |
resources
| URI | Content |
|---|---|
cint://manifest | Edition hashes (SPEC-00P.2 to SPEC-09P.1), CU-000.2 to CU-401.2, and compiler identity d6ebe30d...2609ff |
cint://from-c | CU-000.2: cint for C programmers |
cint://from-python | CU-000.2: cint for Python and NumPy programmers |
cint://cheat-sheet | Condensed cint 0.2.0 syntax, type, built-in, and formatting reference |
cint://refusals | SPEC-09P.1 clause 12 table of constructs refused with C9102 in cint 0.2.0 |