oh-my-ag-mcp-integration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

oh-my-ag MCP Integration

oh-my-ag 与 MCP 集成

When to use this skill

何时使用此技能

  • You want to use
    oh-my-ag
    through MCP in a ulw workflow
  • You need a reproducible installation/setup sequence
  • You need bridge mode between stdio and HTTP/SSE
  • You need quick verification for MCP readiness
  • 你希望在ulw工作流中通过MCP使用
    oh-my-ag
  • 你需要可复现的安装/设置流程
  • 你需要在标准输入输出(stdio)与HTTP/SSE之间的桥接模式
  • 你需要快速验证MCP是否就绪

Instructions

操作步骤

Step 1: Install prerequisites

步骤1:安装前置依赖

  • Install
    bun
  • Install
    uv
  • Authenticate at least one CLI (
    gemini
    ,
    claude
    ,
    codex
    , or
    qwen
    )
  • 安装
    bun
  • 安装
    uv
  • 至少认证一个CLI(
    gemini
    claude
    codex
    qwen

Step 2: Install oh-my-ag in the target project

步骤2:在目标项目中安装oh-my-ag

bash
bunx oh-my-ag
This installs
.agent/skills
,
.agent/workflows
, and default config for the target workspace.
bash
bunx oh-my-ag
此命令会在目标工作区中安装
.agent/skills
.agent/workflows
及默认配置。

Step 3: Run setup workflow

步骤3:运行设置工作流

In your agent chat:
text
/setup
Setup checks CLI availability and MCP connection status.
在你的Agent聊天界面中输入:
text
/setup
设置流程会检查CLI可用性及MCP连接状态。

Step 4: Configure transport mode

步骤4:配置传输模式

Use one of:
  • Command mode: MCP server runs per session
  • SSE mode: MCP server shared via URL
If your IDE path requires bridging, run:
bash
bunx oh-my-ag bridge http://localhost:12341/sse
选择以下模式之一:
  • 命令模式:每个会话运行一个MCP服务器
  • SSE模式:通过URL共享MCP服务器
如果你的IDE路径需要桥接,运行:
bash
bunx oh-my-ag bridge http://localhost:12341/sse

Step 5: Verify health

步骤5:验证健康状态

bash
bunx oh-my-ag doctor
Pass criteria:
  • Required CLI is detected
  • MCP target is reachable/configured
  • No critical setup warnings
bash
bunx oh-my-ag doctor
通过标准:
  • 检测到所需的CLI
  • MCP目标可访问/已配置
  • 无严重设置警告

Output format

输出格式

Provide:
  1. Installation commands executed
  2. Selected MCP mode (command or SSE)
  3. Verification result from
    doctor
  4. Any blocking issue and exact fix command
请提供:
  1. 已执行的安装命令
  2. 所选的MCP模式(命令模式或SSE模式)
  3. doctor
    命令的验证结果
  4. 任何阻塞问题及具体的修复命令

Constraints

约束条件

MUST

必须遵循

  1. Run install from project root
  2. Use
    /setup
    before execution workloads
  3. Run
    doctor
    after configuration
  1. 从项目根目录运行安装命令
  2. 在执行工作负载前使用
    /setup
  3. 配置完成后运行
    doctor

MUST NOT

禁止操作

  1. Do not skip MCP verification
  2. Do not assume bridge mode is always required
  1. 不要跳过MCP验证步骤
  2. 不要假设始终需要桥接模式

References

参考资料