ops-mcp-setup
Configure the GitHub MCP server in this project so the agent can interact with the repository. Use on first-time project setup or when MCP is not yet connected.
- License 许可
- MIT
- 最近更新
- 2026-09-06
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- ops-mcp-setup
- description
- Configure the GitHub MCP server in this project so the agent can interact with the repository. Use on first-time project setup or when MCP is not yet connected.
02 资源文件 3
- 参考文档agents/openai.yaml289 B
- 参考文档references/context.md1.3 KB
- 参考文档templates/checklist.md804 B
03 SKILL.md 正文
Skill: Ops MCP Setup
Context (Required)
- Token details + file format:
references/context.md - Execution checklist:
templates/checklist.md
Connect the agent to the GitHub MCP so it can read issues, create PRs, and interact with the repository.
Prerequisites
npxavailable in PATH- Access to a GitHub account with the target repo
Workflow
1. Ask for Required Information
Before creating files, ask the user:
1. GitHub Personal Access Token (scope: repo, read:org)
Do not create .mcp.json with placeholders — value must be a real token from the user.
2. Check .gitignore
Ensure .mcp.json is in .gitignore. If not, add:
.mcp.json
3. Create .mcp.json
Create the file at project root with the confirmed token:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "{token from user}"
}
}
}
}
4. Update .agents/settings.json
After MCP is ready, update the repo section in .agents/settings.json:
{
"repo": {
"owner": "{github org/username}",
"name": "{github repo name}"
}
}
5. Verify
Instruct the user to:
- Restart Claude Code / agent so
.mcp.jsonis loaded - Test connection: "List open issues in repo {repo-name}"
If it fails, surface the error and direct to the troubleshooting step in references/context.md.
Prohibitions
- FORBIDDEN to store token in any file other than
.mcp.json. - FORBIDDEN to commit
.mcp.json— ensure it is in.gitignore. - FORBIDDEN to create
.mcp.jsonwith placeholder values.
Pre-Completion Checklist
- [ ]
.mcp.jsonis in.gitignore - [ ] Token confirmed from user (not a placeholder)
- [ ]
.mcp.jsoncreated at project root withgithubMCP server - [ ]
.agents/settings.jsonupdated:repo.owner,repo.name - [ ] User instructed to restart agent
- [ ] User successfully verified GitHub connection
04 同仓库更多 Skills
web-slicing
Convert screenshot/Figma designs into pixel-perfect frontend UI with reusable components. Use when the task focuses on visual and layout implementation.
web-seo-geo-friendly
Optimize public Next.js App Router pages for SEO and GEO (Generative Engine Optimization). Use when the user explicitly requests SEO/GEO optimization on public pages.
web-code-review
Review frontend code with a firm senior-lead standard, focusing on bugs, regressions, architecture risks, and test gaps in apps/web and the shared contracts the frontend depends on.
web-bugfix
Fix frontend bugs with minimum-touch changes, keep other surfaces stable, and sync schema, types, hooks, constants, tests, and related docs when impacted.
web-api-integrated
Integrate API endpoints into the frontend with Zod schemas, response types, constants, and react-query hooks. Use when implementing endpoints from an API contract, Postman, or Swagger.
skill-creator
Create a new skill from scratch with full structure — SKILL.md, references, templates, openai.yaml, Claude/OpenCode wrappers, and registration in manifest + AGENTS.md + CLAUDE.md.