MCP setup & tools¶
ml-party’s agent surface is an MCP server. It is self-teaching: the full
tracking workflow (prior-art query → pre-register → env-handshake launch →
finalize → distill) ships as the server’s MCP instructions and as a
track_training prompt — the server text is the canonical agent operating
manual; this page covers setup and the tool surface, and
docs/tracking.md explains the contract itself.
Zero-terminal setup¶
mlp init --root .mlparty # new store + MCP registration in ./.mcp.json
mlp connect --root <store> # register an existing store in this project
mlp mcp-config --root <store> # print the JSON snippet for other MCP clients
mlp serve-mcp --root <store> # run the server by hand (stdio)
mlp init / mlp connect write (or merge into) the project’s .mcp.json,
so any MCP-aware agent started in the project picks the server up after a
one-time approval. From there, “use ml-party to track this run” is all an
agent needs to hear. Note: .mcp.json carries absolute paths — keep it out
of git.
If the server does not show up, it is almost always one of two things:
The agent was started somewhere else. A project-scoped
.mcp.jsonis read from the directory the agent starts in — not the directory you ranmlp initin, if those differ.cdto the directory holding.mcp.jsonand start the agent there.The approval prompt was never answered. Project MCP servers need a one-time approval; until then the server stays inactive.
Verify with /mcp inside Claude Code (it lists active servers), or
claude mcp list from the shell. To register the store for an agent that
runs elsewhere, use mlp connect --project <that directory>, or paste the
mlp mcp-config snippet into that client’s own configuration.
Tools (18)¶
Tool |
Purpose |
|---|---|
|
get-or-create hierarchy; an experiment answers one question |
|
pre-register intent + auto-capture; returns |
|
what a code snapshot of a directory would capture, and the delta vs the last one — before anything is written |
|
telemetry from the agent side (the training process usually streams instead — see tracking.md) |
|
cross-run artifacts on the experiment — experiment-level boards, summary reports (see boards.md) |
|
run control through registered templates — audited, typed, quoted (see actions.md) |
|
close the contract; refusals return as data |
|
distilled knowledge; append-only corrections |
|
retrieval: full nodes, hybrid ranked search, code/param/metric deltas |
Contract refusals come back as {ok: false, refusal: {missing, invalid}} —
repairable in one round-trip, never a protocol error.