Repo + issue + PR + code-search access across personal and org accounts.
#GitHub
Repo + issue + PR + code-search access across personal and org accounts.
#Get a token
Generate a Fine-grained Personal Access Token at https://github.com/settings/tokens?type=beta.
#Recommended scopes
- Use fine-grained PATs (not classic).
- Repository permissions: Contents (Read), Issues (Read & write), Pull requests (Read & write), Metadata (Read).
- Account permissions: leave default.
- Set an expiry — 90 days is a sensible cap.
#Add it to the vault
bashmcpvault add github
Example session:
text$ mcpvault add github Label: personal Description: Solo projects on github.com/elraian Fine-grained PAT (github_pat_…): github_pat_•••••••• ✓ Validated against api.github.com (rate limit: 5000/h) ✓ Saved.
#Tools exposed
github_list_reposgithub_get_repogithub_list_issuesgithub_create_issuegithub_list_pullsgithub_get_filegithub_search_code
#Notes
- Classic PATs work too but expose the full account. Prefer fine-grained.
- If you have multiple orgs, add one mcpvault account per org instead of granting one token to all.
#Switch to this account
In any chat client wired to mcpvault, ask:
Switch to my <label> GitHub account.
The vault server's activate_account tool flips the active label. Wrappers re-read it on the next call — no restart.