# rye:signed:2026-04-01T04:10:51Z:c8ce530a87bbef587727d09401b13c12c525e09dacc910041cf7bd5421c92e6a:P56e3PKSp0itJslGDVDsM9F3pe0QTB5Cs9_XX-hy4TRw3y4Hc70Efy4hSAmHZ-Yxr5PLhey8nCmmINtEeO-RCw:6ea18199041a1ea8
version: "1.0.0"
tool_type: runtime
executor_id: rye/core/primitives/subprocess
category: rye/core/runtimes/mcp
description: "MCP stdio runtime - executes MCP tools via stdio transport"

env_config:
  env:
    PYTHONUNBUFFERED: "1"

config:
  command: "${RYE_KERNEL_PYTHON}"
  args:
    - "{system_space}/.ai/tools/rye/mcp/connect.py"
    - "--server-config"
    - "{server_config_path}"
    - "--tool"
    - "{tool_name}"
    - "--project-path"
    - "{project_path}"
  input_data: "{params_json}"
  timeout: 60

config_schema:
  type: object
  properties:
    server:
      type: string
      description: "Relative tool ID to server config (e.g., mcp/servers/rye-os)"
    tool_name:
      type: string
      description: MCP tool name to call
    timeout:
      type: number
      description: Execution timeout in seconds
      default: 60
  required: [server, tool_name]
