github-mcp-server icon indicating copy to clipboard operation
github-mcp-server copied to clipboard

Add agent security and rate limiting guide

Open advancedresearcharray opened this issue 5 months ago • 1 comments

Summary

Add documentation and a sample policy template for limiting what AI agents can do with the GitHub MCP Server in production workflows.

Why

Fixes #2233

Agents connected to the GitHub MCP Server can invoke destructive and write tools without built-in per-tool rate limits. PAT scopes alone are too coarse for per-tool control. This PR adds practical guidance for combining server configuration, authentication best practices, and optional MCP enforcement proxies.

What changed

  • Add docs/agent-security-guide.md covering built-in safeguards (read-only mode, tool allowlists, exclude-tools), authentication best practices, and MCP enforcement proxies for runtime rate limiting
  • Add docs/examples/recommended-security-policy.yaml as a reference policy template with suggested defaults: block destructive tools, rate-limit writes at 30/hour, cap create_repository at 5/hour
  • Link the guide from the README, Server Configuration Guide, Host Integration Guide, and Policies & Governance doc

MCP impact

  • [x] No tool or API changes

Security / limits

  • [x] Auth / permissions considered
  • [x] Data exposure, filtering, or token/size limits considered

Tool renaming

  • [x] I am not renaming tools as part of this PR

Lint & tests

  • [x] Docs-only change; no code paths modified

Docs

  • [x] Updated (README / docs / examples)

Test plan

  • [x] Verify all new doc links resolve correctly
  • [x] Confirm sample policy references real tool names from the server
  • [ ] Maintainer review of recommended rate limit defaults

advancedresearcharray avatar Jun 06 '26 19:06 advancedresearcharray

Merge-ready check-in

This PR looks ready for maintainer review/merge when you have a moment.

  • Change: Add agent security and rate limiting guide
  • CI: green / passing
  • Review: REVIEW_REQUIRED (mergeable: MERGEABLE)

Happy to rebase or address any remaining feedback. Thanks for maintaining the project.

advancedresearcharray avatar Jun 12 '26 17:06 advancedresearcharray