krauncher-mcp
An MCP server that gives an agent one tool: a pre-run cost estimate for a GPU task, from static analysis of the code. The code is never executed.
It wraps the Krauncher analyzer (the assay), not the broker — there is no dispatch, no execution, no market lineup. Just: how long will this cost, and what does it need to run.
The seconds are a relative signal for comparing code against code, not an absolute forecast. They are normalized to a fixed reference card (RTX PRO 6000 WS) so two estimates are comparable; the GPU and host your code actually runs on will differ, so never read a second-count as the wall-clock you will get. Compare variant-to-variant. This is an early 0.x release — the model is approximate and evolving.
The estimate tool
Input: code — the task's Python source (a self-contained function; a
@client.task-decorated function is fine).
Output, on the reference card (RTX PRO 6000 WS, the card CU is normalized to):
{
"reference_card": "RTX PRO 6000 WS",
"compute_sec": 20.2, // the three phases of wall time on the ref card
"setup_sec": 3.0,
"io_sec": 2.1,
"min_vram_gb": 6, // raw requirement, no headroom margin
"min_disk_gb": 10,
"confidence": 1.0, // 0-1
"analysis_method": "ast", // "ast" | "llm"
"cpu_only": false,
"findings": [ // what the analyzer read from the code
"num_epochs=1", "batch_size=16",
"Recognized model: BERT Base (0.11B params)",
"precision=fp16 from fp16=True"
]
}
The loop it is built for: edit the run → estimate → keep what's cheaper →
repeat, all before spending a GPU-second. The estimate is a static forecast,
not a guarantee; confidence and analysis_method say how much to trust it,
and a rough estimate never blocks — it returns a best effort.
What it does not return: the cost model's calibration coefficients or weights. Only what the analyzer detected in the code leaves the server.
Install
pip install -e . # from this directory; also installs the analyzer client
The server needs an API key for the analyzer, in the environment:
export CAS_API_KEY=cas_...
Verify it works without wiring up a client — runs estimate on a sample task
and prints the contract:
krauncher-mcp --selftest
Wire it into an MCP client
stdio transport; the console script is krauncher-mcp.
{
"mcpServers": {
"krauncher-analyzer": {
"command": "krauncher-mcp",
"env": { "CAS_API_KEY": "cas_..." }
}
}
}
Scope
v1 is deliberately one tool. The per-GPU market lineup is intentionally left out — the agent's job is to improve its code and know the cost before running, and a pre-run estimate (even rough or partial) is the whole point.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file krauncher_mcp-0.1.0.tar.gz.
File metadata
- Download URL: krauncher_mcp-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20487ea0a5bb3c77f5777654524a9aa4509df5c3fcbd6dd905852941770bb799
|
|
| MD5 |
c4e812101241b8eef7c3dba3c6a575cf
|
|
| BLAKE2b-256 |
68087dfcae6234daa3d71b79c0c0dba014b979f5716c15cba0d3fefb45446d97
|
File details
Details for the file krauncher_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: krauncher_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc4c2d8aed8a63d62b52bccaf7a60e81c2c8f679520ee95642190c2623144090
|
|
| MD5 |
10cc25816a08ed8fffbc7ff0cbb08d61
|
|
| BLAKE2b-256 |
807811ccce0bd6a98d7bd3163698c9aa1dcd86fed8b39eac5666f7544ecef81e
|