Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
resources
{
  "subscribe": true,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_pairing_codeA

返回把「当前浏览器里已打开的钉钉文档页面」接到本 bridge 所需的配对码(一串字符串数据)。 用法:agent 在目标页面所在的浏览器上下文里执行控制台命令建连—— 在该页面(通常是文档 iframe 的 contentWindow)调 await window.__docMcpWsBridge.pair(pairingCode)。 这样只有 agent 点名的那个页面会连上;其它浏览器/标签页不受影响,也不会弹任何 UI。 页面据此与 bridge 完成挑战-响应握手(配对码只用于本地计算 HMAC,明文永不上线)。 重要:本工具只返回数据,绝不返回需要执行的脚本;不要 eval 任何东西。 握手成功后 tools/list 会包含文档工具。页面刷新后由页面用 sessionStorage 里的配对码自动重连,无需再次配对。

get_bridge_statusA

返回 bridge 当前状态:监听端口、是否已建桥、页面 MCP 会话是否就绪、在途请求数、Origin 白名单、写权限开关。工具调用失败时先查这里。

revoke_sessionA

轮换配对码并断开当前页面会话(S11)。撤销后旧配对码立即失效,页面 sessionStorage 里的旧值无法再重连,需重新调用 get_pairing_code 配对。用于结束一次授权或怀疑配对码泄露时。

call_page_toolA

显式按名字调用一个由已建桥页面提供的文档工具。 适用场景:部分 MCP host 在 server 启动后不会刷新 tools/list(不响应 notifications/tools/list_changed), 因此页面配对后新出现的 read_document / insert_blocks 等工具对 host 不可见。 call_page_tool 恒定出现在 tools/list 中,它只按 name 与 arguments 原样转发给页面, 桥仍不理解工具语义(A10 哑管道约束)。 未建桥时返回 PAGE_NOT_CONNECTED。

list_page_toolsA

返回「当前已建桥页面」提供的文档工具清单(名字、描述、参数 schema),只读、以数据返回。 适用场景:部分 MCP host 不会随 notifications/tools/list_changed 刷新 tools/list, 导致页面配对后新出现的工具不可见。此时先用 list_page_tools 发现有哪些工具及其参数, 再用 call_page_tool 按名调用。未建桥时返回 PAGE_NOT_CONNECTED。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.6/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct aspect of the bridge lifecycle: status, pairing, revocation, discovery of page tools, and forwarding calls. There is no meaningful overlap between them, even though get_bridge_status and list_page_tools both return state—they report on different layers (bridge vs. page-provided tools).

Naming Consistency5/5

All tool names follow the same snake_case verb_noun pattern: get_bridge_status, get_pairing_code, revoke_session, call_page_tool, list_page_tools. The verbs are specific and the nouns clearly indicate the target, making the naming fully predictable.

Tool Count5/5

Five tools is well-scoped for a bridge-focused MCP server. Each tool covers a necessary part of the pairing/connection/call lifecycle without redundancy or bloat, and the count aligns with the server's narrow purpose.

Completeness5/5

The tool surface covers the full bridge lifecycle: obtaining a pairing code, checking status, revoking sessions, enumerating page-provided tools, and invoking them. There are no obvious dead ends—even hosts that don't refresh tool lists are supported via call_page_tool and list_page_tools.

Maintenance

ActivityMaintained
ResponsivenessNo issues