跳到正文
cccskills
免费在 GitHub 公开

mcp-setup-and-debug

Configure and debug MCP servers for OpenCode, Codex CLI, and Claude Code, including auth headers, scope, and validation checks. Use when MCP tools fail to connect or when adding a new MCP server.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

MCP Setup And Debug

Overview

Add or fix MCP server configs across OpenCode, Codex, and Claude Code. Confirm endpoints, auth headers, scopes, and validate with each client command.

Workflow

1) Confirm endpoints and auth requirements

  • Identify the MCP endpoint and transport. For Langfuse Prompt MCP (US) use https://us.cloud.langfuse.com/api/public/mcp with Basic auth. For Langfuse Docs MCP use https://langfuse.com/api/mcp with no auth.
  • Use web search to verify URLs and required headers if unsure.

2) Prepare auth header (when required)

  • Use LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY in .env.local, then run node scripts/setup-langfuse-mcp-auth.js to generate .opencode/langfuse.mcp.auth, .opencode/langfuse.public, and .opencode/langfuse.secret for OpenCode.
  • Codex and Claude Code still expect LANGFUSE_MCP_AUTH in the environment.
  • Keep credentials out of repo files.

3) Configure each client

  • OpenCode: add a remote MCP server in opencode.json under mcp.
    • Include headers and set oauth to false for API key based servers.
    • For local MCP servers that run via uvx, use type: "local" and command: ["uvx", "--python", "3.11", "langfuse-mcp", "--read-only", "--tools", "traces,observations"].
    • Validate with opencode mcp list.
  • Codex CLI: add entries in .codex/config.toml or ~/.codex/config.toml.
    • For HTTP servers, use env_http_headers to pull LANGFUSE_MCP_AUTH from the environment.
    • Validate with codex mcp list and the /mcp slash command in the TUI.
  • Claude Code: add entries in .mcp.json or use claude mcp add --transport http.
    • Validate with claude mcp list and the /mcp slash command inside Claude Code.

4) Debug checklist

  • 401 Unauthorized usually means the auth header is missing or malformed.
  • HTML or 404 responses often mean the URL is wrong or OAuth was attempted on a non OAuth server.
  • For OpenCode, set oauth: false when using API keys.
  • Confirm environment variables are available to the client process.

5) Report status

  • Summarize which clients connect and which fail.
  • Provide the exact error text for each failing client and propose the next fix.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Analyze Chronote product adoption with PostHog and Langfuse, including active users, meetings, feature usage, AI telemetry, and privacy-safe resolution of active Discord guild IDs to live server names.

中文简介正在准备中。当前显示原文说明。

Chronote-gg/Chronote42026年10月19日 更新

Use when a change affects user-visible behavior at docs.chronote.gg and needs public documentation. Covers where docs live (apps/docs-site vs docs/), authoring checklist, yarn docs:check, and Algolia config. Trigger when the user mentions docs, release notes, what's-new, or user-facing PR changes.

中文简介正在准备中。当前显示原文说明。

Chronote-gg/Chronote42026年10月19日 更新

Investigate errors, incidents, or product ideas using both internet research and repo-wide codebase research, then propose a concrete changeset plan with clarifying questions before any implementation. Use when a user asks to investigate, root-cause, or plan changes, or when an Issue or PR is referenced and needs a plan.

中文简介正在准备中。当前显示原文说明。

Chronote-gg/Chronote42026年10月19日 更新

Query aggregate Langfuse cost, volume, latency, and model telemetry efficiently with Metrics API v2. Use for dashboards, rollout checks, usage summaries, and cost or latency comparisons; use Observations API v2 instead when individual rows are actually required.

中文简介正在准备中。当前显示原文说明。

Chronote-gg/Chronote42026年10月19日 更新

Configure and debug MCP servers for Claude Code, OpenCode, and Codex CLI, including auth headers, scope, and validation checks. Use when MCP tools fail to connect, when an MCP server returns 401/404/HTML, or when adding a new MCP server to this repo.

中文简介正在准备中。当前显示原文说明。

Chronote-gg/Chronote42026年10月19日 更新

Use every time you push a commit to an active pull request, to verify the PR is truly stable before reporting merge readiness. Covers the post-push wait window, AI review audit (Copilot/Greptile/Codex), and the gh commands to snapshot PR state. Trigger on "I pushed" or "is the PR ready to merge".

中文简介正在准备中。当前显示原文说明。

Chronote-gg/Chronote42026年10月19日 更新

查看 Chronote-gg 的全部技能

报告此技能的问题