github-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

GitHub 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

参数

  • --type
    : Search type -
    code
    ,
    repos
    ,
    issues
    ,
    prs
  • --query
    : Search query (supports GitHub search syntax)
  • --owner
    : (optional) Filter by repo owner
  • --repo
    : (optional) Filter by repo name
  • --type
    : 搜索类型 -
    code
    ,
    repos
    ,
    issues
    ,
    prs
  • --query
    : 搜索查询(支持GitHub搜索语法)
  • --owner
    : (可选) 按仓库所有者筛选
  • --repo
    : (可选) 按仓库名称筛选

Examples

示例

bash
undefined
bash
undefined

Search code

Search code

uv run python -m runtime.harness scripts/mcp/github_search.py
--type "code"
--query "authentication language:python"
uv run python -m runtime.harness scripts/mcp/github_search.py
--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"
undefined
uv run python -m runtime.harness scripts/mcp/github_search.py
--type "issues"
--query "bug label:critical"
--owner "anthropics"
undefined

MCP Server Required

需要MCP服务器

Requires
github
server in mcp_config.json with GITHUB_PERSONAL_ACCESS_TOKEN.
需要在mcp_config.json中配置带有GITHUB_PERSONAL_ACCESS_TOKEN的
github
服务器。