Skip to main content

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

LabelPropertyTypeDescriptionDefault ValueIs Required
CodefunctionConfigbotdojo/types/code_sandboxObject
InputinputSchemabotdojo/types/json_schemaObject
Idle Timeout (seconds)idleTimeoutSecondsbotdojo/types/numberHow long the remote process stays alive after the last tool call before shutting down. Default 60.60

Output

LabelPropertyTypeDescriptionDefault Value
Model ContextmodelContextbotdojo/interface/model_contextMCP server that can be used by agentsnull