Repository navigation
mcp: tool descriptions state the export rank limit; Codex how-to tested - #139
Merged
glitch401 merged 1 commit intoNov 23, 2026
Merged
Conversation
Assisted-by: Claude:claude-opus-5-5 Signed-off-by: officialbidisha1 <[email protected]>
glitch401
enabled auto-merge
November 23, 2026 17:07
Member
|
merged! appreciate your contribution, helps us scaling with codex 💃 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I ran
astro-weights mcp RUN_DIRwith Codex as the MCP client, on the tiny random Llama from the first-agent-run tutorial (codex-cli 0.171.0, ChatGPT sign-in, astro-weights 0.2.2, macOS arm64), using headlesscodex exec.What I found:
codex execrefused every MCP call withMCP tool call requires approval, but approval policy is never. Settingdefault_tools_approval_mode = "approve"on the server entry fixes it. The Codex page now documents this.finishreturnedexport_error(rel_residual 0.71 at rank 8). The export limit is in the reference docs but not in the tool descriptions, which are all an MCP client sees. Theexec_pythonandfinishdescriptions now state it, with a test.exec_python,forward_passsubmit and poll,status,finish, and an exported adapter thatastro-weights inspectverifies.The Codex page's "not tested" notices are replaced with a "Tested once" line, as on the Claude Code page.
Not tested: a job running longer than Codex's 60 s tool timeout (tiny-model jobs finish in seconds), and interactive Codex.
Linked issue
Closes #107
Checks run
uv run ruff checkuv run ruff formatuv run mypy src testsuv run lint-importsuv run pytestuv run --extra hf pytest(ifrunners/was touched)Also ran
tests/test_mcp_server.pyandtests/test_docs_snippets.pywith themcpandhfextras, andzensical build --strict. The new test fails on main and passes here.Changelog
changes/, or this PR has theskip-changeloglabelAI disclosure
Tools used: Claude Code (Claude Opus 5.5). Codex CLI 0.171.0 was the client being tested.
What they produced: the docstring, test, docs and changelog changes, and it ran the three Codex sessions. I reviewed the diff and the session logs, and committed and signed off myself.
DCO
git commit -s). My agent did not addSigned-off-by(maintainers: my agent signs off on my standing instruction, and I review before merge).