# rye:signed:2026-03-30T07:28:57Z:f2c528f5cff2afc4a6163cbb2556e48982feca01318544b666b0dfbfe0bb8606:HIVFzavHtVmEhSFFurL5lkPrEWkaaPJSzQFAyR7fxSDPA5XmY5oadZ7gn_DWse3_4RlJXvKvZxYZ_OfA63Q8AQ:6ea18199041a1ea8
version: "1.0.0"
tool_type: runtime
executor_id: rye/core/primitives/subprocess
category: rye/core/runtimes/mcp
description: "MCP HTTP runtime - executes MCP tools via HTTP 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/context7)"
    tool_name:
      type: string
      description: MCP tool name to call
    timeout:
      type: number
      description: Execution timeout in seconds
      default: 60
  required: [server, tool_name]
