get_repo_rules

Read CONTRIBUTING.md and AGENTS.md from a repo.

Parameters

Name Type Required Description
repo string Yes Repository path. Format: teams/team_slug/repo_slug or username/repo_slug.

Example

curl -X POST https://ghit.example/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_repo_rules",
      "arguments": {
        "repo": "teams/acme/webapp"
      }
    }
  }'

Response

Returns the contents of CONTRIBUTING.md and AGENTS.md from the repository root, if they exist. Files that do not exist are omitted from the response. The response is returned as a text content block inside the standard MCP tool result.