Code Model Context 2 Node
warning
This node is in beta and may not be fully tested or documented. Use with caution.
Create an MCP server in code. Tools are registered via context.register_mcp; context.call_tool routes through the Resource Manager so security/policy logic applies. The remote process auto-restarts on failure.
Properties
| Label | Property | Type | Description | Default Value | Is Required |
|---|---|---|---|---|---|
| Code | functionConfig | botdojo/types/code_sandbox | Object | ||
| Input | inputSchema | botdojo/types/json_schema | Object | ||
| Idle Timeout (seconds) | idleTimeoutSeconds | botdojo/types/number | How long the remote process stays alive after the last tool call before shutting down. Default 60. | 60 | ✅ |
Output
| Label | Property | Type | Description | Default Value |
|---|---|---|---|---|
| Model Context | modelContext | botdojo/interface/model_context | MCP server that can be used by agents | null |