qe-mcp

qe-mcp

Provides QE Framework expert-library guidance with compact search and recommendation tools, returning full expert content only on explicit request.

Category
访问服务器

README

qe-mcp

Standalone MCP server for QE Framework expert-library guidance.

This repository holds the large optional expert corpus outside @inho-team/qe-framework so framework installs stay small. The server exposes compact search and recommendation by default, then returns full expert content only after an explicit MCP tool or prompt call.

Install

npm install -g @inho-team/qe-mcp

qe-mcp is the MCP companion for qe-framework. Install the framework plugin first, then connect this MCP package to the clients you use:

# 1. Install the QE Framework Claude/Codex plugin
claude plugin marketplace add inho-team/qe-framework
claude plugin install qe-framework@inho-team-qe-framework

# 2. Install the companion MCP package
npm install -g @inho-team/qe-mcp

# 3. Register the MCP server for local AI clients
qe-mcp init-registry
qe-mcp sync --client claude
qe-mcp sync --client codex

Run qe-mcp sync --dry-run --client claude or qe-mcp sync --dry-run --client codex first if you want to inspect the config file writes before applying them.

For local development:

git clone https://github.com/inho-team/qe-mcp.git
cd qe-mcp
npm run selftest

MCP Server

Direct stdio launch:

qe-mcp-server

Local source launch:

node scripts/qe_mcp_server.mjs

Registry Sync

Initialize a local registry:

qe-mcp init-registry

Preview client config writes:

qe-mcp sync --dry-run --client codex

Apply:

qe-mcp sync --client codex
qe-mcp sync --client claude
qe-mcp sync --client gemini

The default registry writes a qeExpertLibrary MCP server entry pointing at this package's scripts/qe_mcp_server.mjs.

qe-framework and qe-mcp are intended to run as twins:

  • qe-framework installs the workflow skills, agents, hooks, and Codex assets.
  • qe-mcp installs the external expert-library MCP server and cross-agent runner tools.
  • Without qe-mcp, the core QE workflows still load, but expert-library MCP calls and cross-agent runner tools are unavailable.

Maintainers may also connect the separate admin MCP package, qe-admin-mcp, for release, bump, skill-test, audit, and migration workflows. That admin MCP is not required for normal framework usage.

Local Setup Check

After installing and syncing, restart Claude Code or Codex, then verify:

qe-mcp doctor
qe-mcp-server

In the client, the MCP tool list should include qeExpertLibrary tools such as qe_search_experts, qe_read_expert, qe_run_codex_agent, qe_run_claude_agent, qe_cross_agent_help, and the bounded QE maintenance and supervisor tools.

Tools

  • qe_search_experts: compact metadata search
  • qe_recommend_expert: task-based expert recommendation
  • qe_read_expert: explicit bounded expert read
  • qe_read_methodology: explicit bounded methodology/reference read
  • qe_expert_prompt: build a bounded expert prompt payload
  • qe_expert_library_help: quick server usage summary
  • qe_run_codex_agent: active local Codex runner with bounded timeout/output and default read-only posture
  • qe_run_claude_agent: active local Claude runner with bounded timeout/output and default plan/read-only posture
  • qe_cross_agent_help: passive local runner contract and CLI capability summary
  • qe_list_maintenance_jobs: passive catalog of QE maintenance jobs and permission classes
  • qe_run_maintenance_job: dry-run or run-once predefined maintenance jobs with source/config writes, secrets, runner delegation, recursion, and internal scheduling denied
  • qe_get_maintenance_job_status: read recorded maintenance job/run status
  • qe_get_maintenance_job_log: read bounded slices of recorded maintenance run logs
  • qe_supervisor_status: read bounded supervisor status projection
  • qe_supervisor_events: read bounded supervisor events with severity and ack filters
  • qe_supervisor_ack: acknowledge one supervisor event by event_id
  • qe_supervisor_specs: list supervisor monitor specs

Resources

  • qe://experts/catalog
  • qe://experts/<name>
  • qe://experts/<name>/references
  • qe://expert-packs/<pack>

Prompts

  • qe-use-expert
  • qe-review-with-expert
  • qe-plan-with-expert

Verification

npm run check
npm run selftest
npm run runner:smoke

runner:smoke launches the local MCP server and calls qe_cross_agent_help, qe_run_codex_agent, and qe_run_claude_agent through the stdio MCP tool path. Authenticated runners should return status: "ok". Missing local login, missing CLI installs, provider quota limits, or bounded timeouts are reported as structured graceful failures instead of raw crashes.

Trust Boundary

The expert corpus is local passive data. Expert reads do not fetch remote code, do not auto-trust third-party MCP servers, and do not accept raw filesystem paths for expert reads. Expert content was migrated from the deleted optional QE catalog and should be treated as guidance that may need current API verification before implementation.

The cross-agent runner tools are active execution tools. They launch only local CLIs with existing local auth, sanitize inherited environment variables, reject working directories outside this repository, cap timeout/output, and block nested cross-agent recursion by default. qe_cross_agent_help is passive and does not launch either runner.

Do not use the active runner tools for routine expert-library lookups, untrusted prompts, broad autonomous edits, or tasks that require inheriting a user's full MCP configuration. Use the passive expert tools for guidance-only workflows.

The QE maintenance tools are explicit orchestration/status surfaces, not a scheduler. They never install timers, background daemons, or hidden recurring jobs inside the stdio MCP server. Time-based execution belongs to an external scheduler such as Qcron, launchd, cron, or CI. Maintenance run-once is limited to predefined read-only/report-only jobs and narrowly approved recoverable-write jobs.

Recoverable-write candidates (qrefresh, qarchive, qsweep) require an explicit preview-bound approval flow:

  1. Call qe_run_maintenance_job with mode: "dry-run".
  2. Inspect changed_paths_preview, recovery_strategy, and approval_fingerprint.
  3. Call qe_run_maintenance_job with mode: "run-once", confirm_recoverable_write: true, and the matching approval_fingerprint.
  4. Inspect changed_paths, recovery_manifest, status, and logs.

The approval fingerprint is bound to job_id, mode, workspace_root, changed_paths_preview, and permission_profile; mismatches fail closed with policy_denied. Recoverable-write execution is restricted to .qe/state maintenance paths and still denies source writes, config writes, secrets/env access, runner delegation, recursion, and internal scheduling.

The QE supervisor tools are also status/control surfaces, not a resident scheduler. They read .qe/state/supervisor or optional ~/.qe/daemon state, return bounded event/status/spec projections, and allow only explicit ack state writes. CLI install is dry-run only in this phase:

qe-mcp supervisor status --json
qe-mcp supervisor events --json
qe-mcp supervisor specs --json
qe-mcp supervisor install --dry-run --json

qe-mcp supervisor install without --dry-run fails closed and does not write service files, launch agents, cron entries, or start daemons.

Active Runner Examples

Use qe_cross_agent_help first when deciding whether local Codex or Claude is available. It is passive and does not launch either runner.

Minimal Codex runner call:

{
  "name": "qe_run_codex_agent",
  "arguments": {
    "prompt": "Summarize the current repository constraints.",
    "timeout_ms": 60000,
    "max_output_bytes": 24000,
    "allow_writes": false
  }
}

Minimal Claude runner call:

{
  "name": "qe_run_claude_agent",
  "arguments": {
    "prompt": "Review the runner policy boundary.",
    "permission_mode": "plan",
    "timeout_ms": 60000,
    "max_output_bytes": 24000,
    "allow_writes": false
  }
}

Write-capable runs require an explicit write policy. Codex requires allow_writes: true plus sandbox_mode: "workspace-write". Unsafe sandbox or permission modes such as danger-full-access and bypassPermissions are rejected. Recursive runner calls are blocked by default with recursion_blocked.

Troubleshooting:

  • auth_missing: log in to the local provider CLI, then retry the same MCP tool call.
  • not_installed: install the missing local codex or claude CLI.
  • timeout or prompt_stalled: reduce prompt scope or raise timeout_ms within the schema maximum.
  • budget_exceeded: reduce prompt scope or retry after provider quota resets.
  • policy_denied: check cwd, write policy, output cap, recursion depth, and MCP config policy.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选