Skip to content

MCP model_export: the export document over MCP - #45

Merged
sajonaro merged 1 commit into
mainfrom
mcp-model-export
Oct 7, 2026
Merged

sajonaro merged 1 commit into
mainfrom
mcp-model-export

Conversation

@sajonaro

@sajonaro sajonaro commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Step F7c of the improvement plan, the mgtt side. It pairs with mgt-tool/mgtt2writ#4 (mgtt2writ mcp), which is stacked on mgt-tool/mgtt2writ#3. Merge those two first: the harness pin points at #4's head, eb0dbbd.

What changes

  • model_export joins the authoring toolset. It returns the resolved model exactly as mgtt model export --json emits it, with the model given by path or inline. It reads no live system and writes nothing, in keeping with the toolset's promise.
  • Output schema, unit test, and docs: an agents.md line and the tool list, plus a CHANGELOG entry.
  • Harness suite mcp-chain: it chains the servers as an agent would. model_export on minishop, then mgtt2writ mcp's mgtt_to_writ with the document handed on undecoded, then writ check on the file that wrote. The result must certify, as it does through the pipe.

Verified

  • go test ./... passes.
  • mkdocs build --strict passes.
  • The downstream harness passes all 18 suites, mcp-chain among them ("model_export -> mgtt_to_writ -> writ check: certified").
  • By hand, storefront also goes through both tools. writ check then stops at its 200,000-state limit, a limit of that model's size, not of the hand-off.

An agent with no shell could not hand mgtt's model to a checker outside
mgtt: the export was a command only. The authoring toolset now returns the
resolved model as mgtt model export --json emits it, from a model by path
or inline, reading no live system and writing nothing.

The downstream harness chains it as an agent would: model_export, then
mgtt2writ mcp's mgtt_to_writ with the document exactly as it came back,
then writ check on the model that wrote. The minishop model certifies, as
it does through the pipe. The mgtt2writ pin moves to the commit that
serves mgtt_to_writ.
@sajonaro
sajonaro merged commit 99aa2a1 into main Oct 7, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant