Official Weavetab plugin that gives the agent first-class, modular GitHub access — analyze repositories, read raw source, search issues, examine pull requests, fetch raw diffs, and inspect active tabs directly — without burning browser turns or API quota.
GitHub capabilities ship as an official modular plugin rather than polluting the core server. The tools are cleanly separated into dedicated, descriptive MCP tools prefixed with github_.
In addition to standard GitHub REST capabilities, the plugin includes quota-free tools (github_read direct branch reads, github_diff, github_active_tab) that operate completely outside GitHub's unauthenticated 60 requests/hour REST API rate limit and support private repositories currently active in the user's browser.
weavetab plugin add github # resolves to the official @weavetab/plugin-github
# or explicitly
weavetab plugin add @weavetab/plugin-githubBecause the package name starts with @weavetab/plugin-, it is automatically treated as
Official — fully trusted, no verification prompt.
Restart the Weavetab MCP server to activate the tools.
High-level repository reconnaissance: metadata, default branch, recursive file tree, and README preview. Results are cached in isolated storage (configurable TTL).
- Parameters:
repo(optional, falls back to active tab URL).
Fetch raw file contents from raw.githubusercontent.com.
- Parameters:
paths(required): Array of file paths relative to repo root.repo(optional): Target repository slug or URL.branch(optional): Explicit branch/tag. Avoids API discovery calls.line_range(optional):[start, end]1-indexed lines.
Search, list, or inspect issues and timeline comments.
- Parameters:
repo(optional): Target repository slug or URL.number(optional): Specific issue number for full details & comments.search(optional): Search query string.labels(optional): Filter by labels.state(optional):open·closed·all.limit(optional): Max issues to return (default5).
Examine pull request details, changed files, diff stats, and comments, or list recent pull requests.
- Parameters:
repo(optional): Target repository slug or URL.number(optional): PR number for full details & changed files list.state(optional):open·closed·all.limit(optional): Max PRs when listing (default10).
Fetch raw git diffs or patches directly from github.com without consuming REST API rate limits.
- Parameters:
repo(optional): Target repository slug or URL.pull_number(optional): Pull request number to fetch diff or patch for.commit_sha(optional): Commit SHA to fetch diff or patch for.base+head(optional): Compare range.format(optional):diff(unified diff) orpatch(git patch format). Defaultdiff.
Inspect the active browser tab on github.com via local CDP evaluation. Extracts repository overview, open PR/issue discussion, or file content directly from the browser DOM with ZERO network or API calls.
- Parameters:
scope(optional):auto·summary·files·comments·raw.
Written to ~/.weavetab/plugins/@weavetab_plugin-github/config.json on first load:
{
"cacheTtlMs": 1800000,
"maxReadLines": 200,
"defaultIssueLimit": 5,
"token": ""
}| Key | Default | Meaning |
|---|---|---|
cacheTtlMs |
1800000 (30 min) |
How long an analyze result stays cached. |
maxReadLines |
200 |
Max lines returned before truncation. |
defaultIssueLimit |
5 |
Default issue count limit. |
token |
"" |
Optional GitHub Personal Access Token (GITHUB_TOKEN), bumps rate limit from 60 to 5,000 req/hr. |
| Permission | Why |
|---|---|
config.read / config.write |
Read and persist isolated plugin settings. |
cdp.evaluate |
Reads URL and DOM on github.com without navigating or mutating. |
network.domains |
api.github.com, raw.githubusercontent.com, github.com. |
tools.add |
Registers the 6 github_* MCP tools. |