Docs menu+

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.

  • 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

bash
mcpvault 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_repos
  • github_get_repo
  • github_list_issues
  • github_create_issue
  • github_list_pulls
  • github_get_file
  • github_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.

GitHub — mcpvault docs