Skip to main content
Glama
AnEntrypoint

gm-mcp

by AnEntrypoint

gm-mcp

MCP 服务器,将 gm 的 spool 调度周期(写入、轮询、清理后的响应)暴露给任何 MCP 客户端。

功能

将整个 gm spool 的“先写入、再轮询响应”的调度周期封装为一次名为 gm 的 MCP 工具调用,而不是由调用方分三步分别写入输入文件、轮询输出文件并读取结果。

  • 写入 .gm/exec-spool/in/<verb>/<N>.txt

  • 轮询 .gm/exec-spool/out/<verb>-<N>.json,直到其出现(或超时)

  • 将响应作为扁平的 YAML 文本返回,并自动清理以提高可读性:

    • 移除不透明的内部 ID(dispatch_idrequest_fingerprint

    • 将冗余的 response/data 嵌套层级展平到顶层(除非字段名会发生冲突)

    • 截断长文本字段(例如 instruction 的完整阶段说明),并附上指向磁盘文件的提示,以便读取完整文本

    • 丢弃命中数组的排序内部字段(recall_hits/bm25_hits/vector_hits 中的 cos/score/recency

    • 移除每一层级的空/空值字段

  • 成功响应完全省略 spool 文件路径(调用方已知 verb/cwd);这些路径仅在超时/中止/出错时出现,以指明查看位置

  • 通过 raw_body 字符串参数支持纯文本正文动词(exec_js 及其支持的所有语言词干、serpbrowsercdp),因为这些动词会直接拒绝 JSON 对象正文

Related MCP server: windlass

用法

npx gm-mcp

或者将其添加到你的 MCP 客户端的服务器配置中,例如:

{
  "mcpServers": {
    "gm": {
      "command": "npx",
      "args": ["gm-mcp"]
    }
  }
}

工具:gm

参数

类型

必需

描述

verb

string

gm spool 动词名称,例如 instructionprd-addgit_statusexec_js

session_id

string

本次调度的 gm SESSION_ID

body

object

调度的 JSON 正文(不适用于纯文本正文动词)

raw_body

string

纯文本正文动词的字面文本正文,与 body 互斥

cwd

string

包含 .gm/exec-spool 的项目根目录——默认为 process.cwd()

timeout_seconds

number

超过此秒数后放弃并返回 timed_out:true(默认 120)

poll_interval_seconds

number

检查响应的频率(默认 1)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables MCP clients to submit long-running jobs that are executed safely in isolated child processes with a durable SQLite queue, configurable timeouts, retries with backoff, and backpressure.
    5
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    A local STDIO MCP server for running one bounded command and waiting for its final result, eliminating model-driven polling. Designed for builds, test suites, and other trusted foreground commands.
    3
    2
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    Provides MCP tools for reading, listing, writing, searching, watching, and batch-processing files, enabling automated file management and resume matching workflows.
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnEntrypoint/gm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server