github-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGitHub Search Skill
GitHub Search Skill
When to Use
使用场景
- Search code across repositories
- Find issues or PRs
- Look up repository information
- 跨仓库搜索代码
- 查找议题或拉取请求(PRs)
- 查询仓库信息
Instructions
使用说明
bash
uv run python -m runtime.harness scripts/mcp/github_search.py \
--type "code" \
--query "your search query"bash
uv run python -m runtime.harness scripts/mcp/github_search.py \
--type "code" \
--query "your search query"Parameters
参数
- : Search type -
--type,code,repos,issuesprs - : Search query (supports GitHub search syntax)
--query - : (optional) Filter by repo owner
--owner - : (optional) Filter by repo name
--repo
- : 搜索类型 -
--type,code,repos,issuesprs - : 搜索查询(支持GitHub搜索语法)
--query - : (可选) 按仓库所有者筛选
--owner - : (可选) 按仓库名称筛选
--repo
Examples
示例
bash
undefinedbash
undefinedSearch code
Search code
uv run python -m runtime.harness scripts/mcp/github_search.py
--type "code"
--query "authentication language:python"
--type "code"
--query "authentication language:python"
uv run python -m runtime.harness scripts/mcp/github_search.py
--type "code"
--query "authentication language:python"
--type "code"
--query "authentication language:python"
Search issues
Search issues
uv run python -m runtime.harness scripts/mcp/github_search.py
--type "issues"
--query "bug label:critical"
--owner "anthropics"
--type "issues"
--query "bug label:critical"
--owner "anthropics"
undefineduv run python -m runtime.harness scripts/mcp/github_search.py
--type "issues"
--query "bug label:critical"
--owner "anthropics"
--type "issues"
--query "bug label:critical"
--owner "anthropics"
undefinedMCP Server Required
需要MCP服务器
Requires server in mcp_config.json with GITHUB_PERSONAL_ACCESS_TOKEN.
github需要在mcp_config.json中配置带有GITHUB_PERSONAL_ACCESS_TOKEN的服务器。
github