ridge-mcp-dispatch

Solid

教大模型使用 Ridge 终端内置的 MCP server 在多个终端 pane 之间调度、派发任务给 teammate agent。当你运行在 Ridge/rdg 里(环境变量含 RIDGE_TEAMMATE_URL / RIDGE_TEAMMATE_TOKEN),需要拆分 pane、把子任务委派给其它 pane 的 agent、跨 agent 传递大块中间产物、或读取工作区花名册/git 状态/编辑器上下文时使用。触发词:派活、委派、分屏、teammate、编组、ridge:// 资源、调度终端。

AI & Automation 20 stars 3 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
44
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Ridge 内置 MCP —— 终端内多 agent 调度 Ridge(桌面 app)与 `rdg`(无头 host)内建一个 **MCP server**,让运行在某个 pane 里的 你,去驱动**同一工作区其它 pane** 里的 teammate agent:拆分屏、派活、传数据、读上下文。 协议是 JSON-RPC 2.0,三条传输:**stdio(`rdg mcp`)/ HTTP(`POST /api/v1/mcp`)/ WebSocket**。 桌面与 rdg 是**同一份实现**(crate `ridge-mcp`),工具与资源完全对等。 ## 1. 我在 Ridge 里吗?怎么连? 只有当下面两个环境变量都存在时,本 MCP 才可用(Ridge PTY 注入,子进程继承): ``` RIDGE_TEAMMATE_URL # 例 http://127.0.0.1:52731 —— HTTP base,端口是 ephemeral RIDGE_TEAMMATE_TOKEN # 鉴权 token RIDGE_WORKSPACE_ID # 发起方工作区 UUID(HTTP 放置路由需要,作 X-Ridge-Workspace 头) ``` **端点**(任选其一): ``` POST http://127.0.0.1:<port>/api/v1/mcp # 一发一收 JSON-RPC,最省事 ws://127.0.0.1:<port>/api/v1/mcp/ws # 长连 rdg mcp # stdio 桥,端点/token 自动发现,端口漂移自愈 ``` 给别的 MCP 客户端接入直接用:`claude mcp add ridge -- rdg mcp`。 **鉴权**:升级请求带头 `x-ridge-token: <RIDGE_TEAMMATE_TOKEN>`(或 `Authorization: Bearer <token>`)。缺/错 → 401。 > 端点会漂移:后端 panic 自重启会换端口。env 里的值可能过期。权威副本落在 sidecar 文件 > `TMPDIR/ridge-teammate-endpoint-<sanitized>.json`(`{"url","token"}`),其中 `<sanitized>` = > `$TMUX` 第一段路径里非字母数字全替换成 `_`。连不上先读这个文件刷新 url/token。 ## 2. 协议方法(JSON-RPC 2.0) | method | 说明 | |---|---| | `initialize` | 握手,返回 serverInfo/capabilities。可选,直接调工具也行。 | | `tools/list` | 列出全部工具规格。 | | `tools/call` | `params: { "name": <tool>, "arguments": {...} }` 调工具。 | | `resources/list` · `resources/templates/list` | 列可读资源。 | | `resources/read` | `params: { "uri": "ridge://..." }` 读资源。 | | `ping` | 心跳。通知(无 `id`)**不会有响应**(HTTP 回 202...

Details

Author
MySetsuna
Repository
MySetsuna/ridge
Created
5 months ago
Last Updated
3 days ago
Language
Rust
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

bmob-mcp

Use when the user has the Bmob MCP server configured (http://mcp.bmobapp.com/mcp) and wants to perform LIVE operations against their Bmob backend cloud project from the IDE. Triggers: 'list bmob tables', 'show bmob schema', 'create bmob table', 'add a row to bmob', 'update bmob record', 'delete bmob data', '生成 bmob curl', 'design bmob schema', '上传云函数', '部署云函数', '发布云函数', '同步云函数', '同步函数', '拉取云函数', '下载云函数', '调用云函数', '执行云函数', 'invoke cloud function', 'run cloud function', '一键部署网站', '静态托管', '部署静态站点', 'deploy static site', 'deploy website'. Provides 12 tools: get_project_tables (ALWAYS call first to discover schema before any write), create_table, add_single_data, update_single_data, delete_single_data, generate_code, deploy_cloud_function, invoke_cloud_function, list_cloud_functions, get_cloud_function, deploy_static_site, mcp_endpoint_mcp_post. NOT for writing client/SDK code that will ship in the user's app — for that use bmob-database-{javascript,android,ios,swift,flutter,restful}. NOT for ACL / role design (us

3 Updated 4 days ago
bmob
AI & Automation Listed

mcp-protocol

MCP(Model Context Protocol)协议认知 — 蒙多的工具扩展之道

5 Updated 1 months ago
LiHongwei-cn
AI & Automation Listed

ccrg-code

通过 CCRG MCP 执行编程 Agent 任务。使用 SSE 流式接收,实时显示每一步执行过程,像 codex cli / claude code 一样工作。

1 Updated 4 days ago
viaco2ove