Repository navigation
Run MiniMax Code functions through native MCP - #781
Merged
Merged
Conversation
SaladDay
force-pushed
the
run-minimax-code-functions-through-native-mcp
branch
from
October 19, 2026 16:15
3be2c0e to
6aaab75
Compare
SaladDay
changed the base branch from
main
to
let-subagents-call-function-and-mcp-tools
October 19, 2026 16:15
SaladDay
force-pushed
the
run-minimax-code-functions-through-native-mcp
branch
from
October 19, 2026 18:00
6aaab75 to
22fb795
Compare
SaladDay
force-pushed
the
let-subagents-call-function-and-mcp-tools
branch
from
October 19, 2026 18:14
e01c09d to
7b621a9
Compare
SaladDay
force-pushed
the
run-minimax-code-functions-through-native-mcp
branch
from
October 19, 2026 18:16
22fb795 to
b09fae9
Compare
SaladDay
force-pushed
the
let-subagents-call-function-and-mcp-tools
branch
from
October 19, 2026 18:20
7b621a9 to
1a1b706
Compare
This comment has been minimized.
This comment has been minimized.
SaladDay
force-pushed
the
run-minimax-code-functions-through-native-mcp
branch
from
October 19, 2026 18:20
b09fae9 to
d6ec217
Compare
Base automatically changed from
let-subagents-call-function-and-mcp-tools
to
main
October 19, 2026 18:30
SaladDay
force-pushed
the
run-minimax-code-functions-through-native-mcp
branch
from
October 19, 2026 18:30
010e40e to
d57e8f5
Compare
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.
MiniMax Code now runs public function tools as native MCP tools, as a local MiniMax Code run with an MCP server does.
MiniMax Code speaks ACP, which has no function protocol, but it runs the MCP servers passed in the ACP Session's
mcpServers.Function server. The daemon serves the Session's frozen functions from a go-sdk MCP server, stateless with JSON responses, on
127.0.0.1:0.httpserverfunctions, with a per-Session random bearer header.Calls.
tools/callemitsfunction_call, then blocks untilSubmitFunctionResultdelivers the result.success=falsebecomes MCPisError.tool_call_update(completed or failed) appears.Declaration.
FunctionToolsis supported onnoneand on workspace placements.inputSchemarequires.functionsis reserved for public MCP servers.multi_agentstay rejected until child attribution for this Harness is settled.Native difference. This is recorded in OpenAI compatibility. The native MCP client has a hard 120 s call timeout and ACP servers carry no timeout, so a result submitted later fails natively.
Also deleted:
mcp.json={"mcpServers":{}}write on every preparation (native treats a missing file as empty, and its MCP-create tool is off);SubmitFunctionResultstub.Docs: harness-capabilities, message-content, execution-tools, index.md, with zh mirrors, and the MiniMax Code guide.
Checks.
go vet ./...in all modules.go test(with-race) for the mcode adapter,internal/harnessconfig/...andservices/core/internal/execution.environment: nonewith MiniMax-M2.7: the model called the function, native received the submitted result, the receipt was confirmed, and the Turn finished with it.Need help on this PR? Tag
@codesmith-botwith what you need.