github-agent 0.33.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. github_agent-1.0.2/PKG-INFO +700 -0
  2. github_agent-1.0.2/README.md +672 -0
  3. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/agent_server.py +1 -1
  4. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/auth.py +38 -8
  5. github_agent-1.0.2/github_agent/github_gql.py +88 -0
  6. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_issue.py +34 -5
  7. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp_server.py +139 -51
  8. github_agent-1.0.2/github_agent/prompts/__init__.py +0 -0
  9. github_agent-1.0.2/github_agent/prompts/main_agent.json +20 -0
  10. github_agent-1.0.2/github_agent/skills/__init__.py +0 -0
  11. github_agent-1.0.2/github_agent/skills/github-starter/SKILL.md +19 -0
  12. github_agent-1.0.2/github_agent.egg-info/PKG-INFO +700 -0
  13. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent.egg-info/SOURCES.txt +6 -0
  14. github_agent-1.0.2/github_agent.egg-info/entry_points.txt +9 -0
  15. github_agent-1.0.2/github_agent.egg-info/requires.txt +16 -0
  16. {github_agent-0.33.0 → github_agent-1.0.2}/pyproject.toml +12 -3
  17. github_agent-1.0.2/tests/test_github_gql.py +35 -0
  18. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_mcp_coverage.py +36 -0
  19. github_agent-0.33.0/PKG-INFO +0 -371
  20. github_agent-0.33.0/README.md +0 -350
  21. github_agent-0.33.0/github_agent.egg-info/PKG-INFO +0 -371
  22. github_agent-0.33.0/github_agent.egg-info/entry_points.txt +0 -3
  23. github_agent-0.33.0/github_agent.egg-info/requires.txt +0 -6
  24. {github_agent-0.33.0 → github_agent-1.0.2}/LICENSE +0 -0
  25. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/__init__.py +0 -0
  26. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/__main__.py +0 -0
  27. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/__init__.py +0 -0
  28. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_base.py +0 -0
  29. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_branches.py +0 -0
  30. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_commits.py +0 -0
  31. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_contents.py +0 -0
  32. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_issues.py +0 -0
  33. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_orgs.py +0 -0
  34. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_pages.py +0 -0
  35. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_pulls.py +0 -0
  36. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_releases.py +0 -0
  37. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_repos.py +0 -0
  38. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_search.py +0 -0
  39. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api/api_client_workflows.py +0 -0
  40. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/api_client.py +0 -0
  41. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/github_input_models.py +0 -0
  42. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/github_response_models.py +0 -0
  43. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/__init__.py +0 -0
  44. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_action.py +0 -0
  45. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_branch.py +0 -0
  46. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_collaborator.py +0 -0
  47. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_commit.py +0 -0
  48. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_content.py +0 -0
  49. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_org.py +0 -0
  50. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_pull.py +0 -0
  51. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_release.py +0 -0
  52. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_repo.py +0 -0
  53. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp/mcp_search.py +0 -0
  54. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent/mcp_config.json +0 -0
  55. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent.egg-info/dependency_links.txt +0 -0
  56. {github_agent-0.33.0 → github_agent-1.0.2}/github_agent.egg-info/top_level.txt +0 -0
  57. {github_agent-0.33.0 → github_agent-1.0.2}/scripts/security_sanitizer.py +0 -0
  58. {github_agent-0.33.0 → github_agent-1.0.2}/scripts/validate_a2a_agent.py +0 -0
  59. {github_agent-0.33.0 → github_agent-1.0.2}/scripts/verify_api_integration.py +0 -0
  60. {github_agent-0.33.0 → github_agent-1.0.2}/setup.cfg +0 -0
  61. {github_agent-0.33.0 → github_agent-1.0.2}/tests/conftest.py +0 -0
  62. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_action_discovery.py +0 -0
  63. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_api_client_endpoints.py +0 -0
  64. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_api_validation.py +0 -0
  65. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_auth_client_edge_cases.py +0 -0
  66. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_concept_parity.py +0 -0
  67. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_github_agent_api_brute_force_coverage.py +0 -0
  68. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_github_agent_brute_force_coverage.py +0 -0
  69. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_hardening.py +0 -0
  70. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_init_dynamics.py +0 -0
  71. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_model_fields.py +0 -0
  72. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_org_crud.py +0 -0
  73. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_pages.py +0 -0
  74. {github_agent-0.33.0 → github_agent-1.0.2}/tests/test_startup.py +0 -0
@@ -0,0 +1,700 @@
1
+ Metadata-Version: 2.4
2
+ Name: github-agent
3
+ Version: 1.0.2
4
+ Summary: GitHub Agent for MCP
5
+ Author-email: Audel Rouhi <knucklessg1@gmail.com>
6
+ License: MIT
7
+ Classifier: Development Status :: 5 - Production/Stable
8
+ Classifier: License :: Public Domain
9
+ Classifier: Environment :: Console
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: <3.15,>=3.11
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: agent-utilities[mcp]>=1.0.0
16
+ Requires-Dist: gql[requests]>=4.0.0
17
+ Provides-Extra: mcp
18
+ Requires-Dist: agent-utilities[mcp]>=1.0.0; extra == "mcp"
19
+ Provides-Extra: agent
20
+ Requires-Dist: agent-utilities[agent,logfire]>=1.0.0; extra == "agent"
21
+ Provides-Extra: all
22
+ Requires-Dist: agent-utilities[agent,logfire,mcp]>=1.0.0; extra == "all"
23
+ Provides-Extra: test
24
+ Requires-Dist: pytest-xdist>=3.6.0; extra == "test"
25
+ Requires-Dist: pytest; extra == "test"
26
+ Requires-Dist: pytest-asyncio; extra == "test"
27
+ Dynamic: license-file
28
+
29
+ # Github Agent
30
+ ## CLI or API | MCP | Agent
31
+
32
+ ![PyPI - Version](https://img.shields.io/pypi/v/github-agent)
33
+ ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
34
+ ![PyPI - Downloads](https://img.shields.io/pypi/dd/github-agent)
35
+ ![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/github-agent)
36
+ ![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/github-agent)
37
+ ![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/github-agent)
38
+ ![PyPI - License](https://img.shields.io/pypi/l/github-agent)
39
+ ![GitHub](https://img.shields.io/github/license/Knuckles-Team/github-agent)
40
+ ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/github-agent)
41
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/github-agent)
42
+ ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/github-agent)
43
+ ![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/github-agent)
44
+ ![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/github-agent)
45
+ ![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/github-agent)
46
+ ![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/github-agent)
47
+ ![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/github-agent)
48
+ ![PyPI - Wheel](https://img.shields.io/pypi/wheel/github-agent)
49
+ ![PyPI - Implementation](https://img.shields.io/pypi/implementation/github-agent)
50
+
51
+ *Version: 1.0.2*
52
+
53
+ > **Documentation** — Installation, deployment, and usage across the MCP, API, and
54
+ > CLI interfaces, including the integrated A2A agent server, are maintained in the
55
+ > [official documentation](https://knuckles-team.github.io/github-agent/).
56
+
57
+ ---
58
+
59
+ ## Overview
60
+
61
+ **Github Agent** is a production-grade Agent and Model Context Protocol (MCP) server designed to interface directly with GitHub Agent for MCP.
62
+
63
+ ---
64
+
65
+ ## Key Features
66
+
67
+ - **Consolidated Action-Routed MCP Tools:** Minimizes token overhead and eliminates tool bloat in LLM contexts by grouping methods into optimized, togglable tool modules.
68
+ - **Enterprise-Grade Security:** Comprehensive support for Eunomia policies, OIDC token delegation, and granular execution context tracking.
69
+ - **Integrated Graph Agent:** Built-in Pydantic AI agent supporting the Agent Control Protocol (ACP) and standard Web interfaces (AG-UI).
70
+ - **Native Telemetry & Tracing:** Out-of-the-box OpenTelemetry exports and native Langfuse tracing.
71
+
72
+ ---
73
+
74
+ ## CLI or API
75
+
76
+ This agent wraps the GitHub Agent for MCP API. You can interact with it programmatically or via its integrated execution entrypoints.
77
+
78
+ Detailed instructions on how to use the underlying API wrappers, extended schema bindings, and developer SDK references are maintained in [docs/index.md](docs/index.md).
79
+
80
+ ---
81
+
82
+ ## MCP
83
+
84
+ This server utilizes dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.
85
+
86
+ ### Available MCP Tools
87
+
88
+ _Auto-generated from the live MCP server — do not edit by hand._
89
+
90
+ <!-- MCP-TOOLS-TABLE:START -->
91
+
92
+ #### Condensed action-routed tools (default — `MCP_TOOL_MODE=condensed`)
93
+
94
+ | MCP Tool | Toggle Env Var | Description |
95
+ |----------|----------------|-------------|
96
+ | `github_actions` | `ACTIONTOOL` | Manage GitHub actions workflows and runs. |
97
+ | `github_branches` | `BRANCHTOOL` | Manage GitHub branches. |
98
+ | `github_collaborators` | `COLLABORATORTOOL` | Manage repository collaborators. |
99
+ | `github_commits` | `COMMITTOOL` | Manage GitHub commits. |
100
+ | `github_contents` | `CONTENTTOOL` | Manage GitHub contents. |
101
+ | `github_issues` | `ISSUETOOL` | Manage GitHub issues. |
102
+ | `github_orgs` | `ORGTOOL` | Manage GitHub organizations. |
103
+ | `github_pulls` | `PULLTOOL` | Manage GitHub pull requests. |
104
+ | `github_releases` | `RELEASETOOL` | Manage repository releases. |
105
+ | `github_repos` | `REPOTOOL` | Manage GitHub repositories and their GitHub Pages sites. |
106
+ | `github_search` | `SEARCHTOOL` | Search GitHub repositories, issues, or code. |
107
+
108
+ #### Verbose 1:1 API-mapped tools (`MCP_TOOL_MODE=verbose` or `both`)
109
+
110
+ <details>
111
+ <summary>66 per-operation tools — one per public API method (click to expand)</summary>
112
+
113
+ | MCP Tool | Toggle Env Var | Description |
114
+ |----------|----------------|-------------|
115
+ | `github_add_collaborator` | `APITOOL` | Add a collaborator to a repository. |
116
+ | `github_cancel_workflow_run` | `APITOOL` | Cancel a workflow run. |
117
+ | `github_create_branch` | `APITOOL` | Create a new branch in a repository (using git ref creation). |
118
+ | `github_create_content` | `APITOOL` | Create a file in a repository. |
119
+ | `github_create_issue` | `APITOOL` | Create a new issue in a repository. |
120
+ | `github_create_or_update_repo_secret` | `APITOOL` | Create or update a repository Actions secret. |
121
+ | `github_create_organization` | `APITOOL` | Create an organization — GitHub Enterprise Server ONLY. |
122
+ | `github_create_organization_repository` | `APITOOL` | Create a repository in an organization. |
123
+ | `github_create_pages` | `APITOOL` | Enable GitHub Pages for a repository (HTTP 201). |
124
+ | `github_create_pull_request` | `APITOOL` | Create a new pull request in a repository. |
125
+ | `github_create_release` | `APITOOL` | Create a new repository release. |
126
+ | `github_create_repository` | `APITOOL` | Create a new repository for the authenticated user. |
127
+ | `github_delete_branch` | `APITOOL` | Delete a branch in a repository. |
128
+ | `github_delete_branch_protection` | `APITOOL` | Delete branch protection configuration. |
129
+ | `github_delete_content` | `APITOOL` | Delete a file in a repository. |
130
+ | `github_delete_organization` | `APITOOL` | Schedule an organization for deletion. IRREVERSIBLE. |
131
+ | `github_delete_pages` | `APITOOL` | Disable GitHub Pages for a repository and delete the site. |
132
+ | `github_delete_release` | `APITOOL` | Delete a repository release. |
133
+ | `github_delete_repo_secret` | `APITOOL` | Delete a repository Actions secret. |
134
+ | `github_delete_repository` | `APITOOL` | Delete a repository. |
135
+ | `github_delete_workflow_run` | `APITOOL` | Delete a workflow run. |
136
+ | `github_get_branch` | `APITOOL` | Get a single branch in a repository. |
137
+ | `github_get_branch_protection` | `APITOOL` | Get branch protection configuration. |
138
+ | `github_get_branches` | `APITOOL` | List branches for a repository. |
139
+ | `github_get_collaborators` | `APITOOL` | List collaborators for a repository. |
140
+ | `github_get_commit` | `APITOOL` | Get a single commit in a repository. |
141
+ | `github_get_commits` | `APITOOL` | List commits for a repository. |
142
+ | `github_get_contents` | `APITOOL` | Get contents of a file or directory in a repository. |
143
+ | `github_get_issue` | `APITOOL` | Get a single issue in a repository. |
144
+ | `github_get_issues` | `APITOOL` | List issues for a repository. |
145
+ | `github_get_org_members` | `APITOOL` | List members for an organization. |
146
+ | `github_get_org_repos` | `APITOOL` | List repositories for an organization. |
147
+ | `github_get_org_teams` | `APITOOL` | List teams for an organization. |
148
+ | `github_get_organization` | `APITOOL` | Get an organization's full profile. |
149
+ | `github_get_organization_membership` | `APITOOL` | Get a user's organization membership (state and role). |
150
+ | `github_get_pages` | `APITOOL` | Get the GitHub Pages site configuration for a repository. |
151
+ | `github_get_pages_build_latest` | `APITOOL` | Get the latest GitHub Pages build for a repository. |
152
+ | `github_get_pull_request` | `APITOOL` | Get a single pull request. |
153
+ | `github_get_pull_requests` | `APITOOL` | List pull requests for a repository. |
154
+ | `github_get_release` | `APITOOL` | Get a single repository release. |
155
+ | `github_get_releases` | `APITOOL` | List repository releases. |
156
+ | `github_get_repo_secrets` | `APITOOL` | List repository Actions secrets names. |
157
+ | `github_get_repositories` | `APITOOL` | List repositories for the authenticated user. |
158
+ | `github_get_repository` | `APITOOL` | Get a specific repository. |
159
+ | `github_get_workflow_run` | `APITOOL` | Get a single workflow run. |
160
+ | `github_get_workflow_runs` | `APITOOL` | List workflow runs for a repository. |
161
+ | `github_get_workflows` | `APITOOL` | List workflows for a repository. |
162
+ | `github_list_organizations` | `APITOOL` | List organizations. |
163
+ | `github_list_pages_builds` | `APITOOL` | List GitHub Pages builds for a repository (newest first). |
164
+ | `github_remove_collaborator` | `APITOOL` | Remove a collaborator from a repository. |
165
+ | `github_remove_organization_member` | `APITOOL` | Remove a user from an organization (repositories access included). |
166
+ | `github_request_pages_build` | `APITOOL` | Request a fresh GitHub Pages build without pushing a commit. |
167
+ | `github_rerun_workflow_run` | `APITOOL` | Re-run a workflow run. |
168
+ | `github_search_code` | `APITOOL` | Search code using query keywords. |
169
+ | `github_search_issues` | `APITOOL` | Search issues using query keywords. |
170
+ | `github_search_repositories` | `APITOOL` | Search repositories using query keywords. |
171
+ | `github_set_organization_membership` | `APITOOL` | Add a user to an organization or update their role. |
172
+ | `github_trigger_workflow_dispatch` | `APITOOL` | Trigger a workflow dispatch event. |
173
+ | `github_update_branch_protection` | `APITOOL` | Update branch protection configuration. |
174
+ | `github_update_content` | `APITOOL` | Update a file in a repository. |
175
+ | `github_update_issue` | `APITOOL` | Update an issue in a repository. |
176
+ | `github_update_organization` | `APITOOL` | Update an organization's profile and member settings. |
177
+ | `github_update_pages` | `APITOOL` | Update the GitHub Pages configuration for a repository. |
178
+ | `github_update_pull_request` | `APITOOL` | Update a pull request. |
179
+ | `github_update_release` | `APITOOL` | Update (PATCH) a repository release. |
180
+ | `github_update_repository` | `APITOOL` | Update a repository. |
181
+
182
+ </details>
183
+
184
+ _11 action-routed tool(s) (default) · 66 verbose 1:1 tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (`condensed` default · `verbose` 1:1 · `both`). Auto-generated — do not edit._
185
+ <!-- MCP-TOOLS-TABLE:END -->
186
+
187
+ Detailed tool schemas, parameter shapes, and validation constraints are preserved in [docs/mcp.md](docs/mcp.md).
188
+
189
+ ### Dynamic Tool Selection & Visibility
190
+
191
+ This MCP server supports dynamic toolset selection and visibility filtering at runtime. This allows you to restrict the set of exposed tools in order to prevent blowing up the LLM's context window.
192
+
193
+ You can configure tool filtering via multiple input channels:
194
+
195
+ - **CLI Arguments:** Pass `--tools` or `--toolsets` (or their disabled counterparts `--disabled-tools` and `--disabled-toolsets`) during startup.
196
+ - **Environment Variables:** Define standard environment variables:
197
+ - `MCP_ENABLED_TOOLS` / `MCP_DISABLED_TOOLS`
198
+ - `MCP_ENABLED_TAGS` / `MCP_DISABLED_TAGS`
199
+ - **HTTP SSE Request Headers:** Pass custom headers during transport initialization:
200
+ - `x-mcp-enabled-tools` / `x-mcp-disabled-tools`
201
+ - `x-mcp-enabled-tags` / `x-mcp-disabled-tags`
202
+ - **HTTP SSE Request Query Parameters:** Append query parameters directly to your transport connection URL:
203
+ - `?tools=tool1,tool2`
204
+ - `?tags=tag1`
205
+
206
+ When query strings or parameters are supplied, an LLM-free **Knowledge Graph resolution layer** (using `DynamicToolOrchestrator`) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.
207
+
208
+ ---
209
+
210
+ ### MCP Configuration Examples
211
+
212
+ <!-- MCP-CONFIG-EXAMPLES:START -->
213
+
214
+ > **Install the slim `[mcp]` extra.** All examples install `github-agent[mcp]` — the
215
+ > MCP-server extra that pulls only the FastMCP / FastAPI tooling (`agent-utilities[mcp]`).
216
+ > It deliberately **excludes** the heavy agent runtime (`pydantic-ai`, the epistemic-graph
217
+ > engine, `dspy`, `llama-index`), so `uvx` / container installs are far smaller. Use the
218
+ > full `[agent]` extra only when you need the integrated Pydantic AI agent.
219
+
220
+ #### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
221
+
222
+ ```json
223
+ {
224
+ "mcpServers": {
225
+ "github-mcp": {
226
+ "command": "uvx",
227
+ "args": [
228
+ "--from",
229
+ "github-agent[mcp]",
230
+ "github-mcp"
231
+ ],
232
+ "env": {
233
+ "MCP_TOOL_MODE": "condensed",
234
+ "ACTIONTOOL": "True",
235
+ "BRANCHTOOL": "True",
236
+ "COLLABORATORTOOL": "True",
237
+ "COMMITTOOL": "True",
238
+ "CONTENTTOOL": "True",
239
+ "GITHUB_ALLOW_DESTRUCTIVE": "False",
240
+ "GITHUB_HTTP_CONNECT_TIMEOUT": "10",
241
+ "GITHUB_HTTP_READ_TIMEOUT": "30",
242
+ "GITHUB_TOKEN": "your_github_token_here",
243
+ "GITHUB_URL": "https://api.github.com",
244
+ "GITHUB_VERIFY": "True",
245
+ "GRAPHQLTOOL": "True",
246
+ "ISSUETOOL": "True",
247
+ "ORGTOOL": "True",
248
+ "PULLTOOL": "True",
249
+ "RELEASETOOL": "True",
250
+ "REPOTOOL": "True",
251
+ "SEARCHTOOL": "True"
252
+ }
253
+ }
254
+ }
255
+ }
256
+ ```
257
+
258
+ #### Streamable-HTTP Transport (networked / production)
259
+
260
+ ```json
261
+ {
262
+ "mcpServers": {
263
+ "github-mcp": {
264
+ "command": "uvx",
265
+ "args": [
266
+ "--from",
267
+ "github-agent[mcp]",
268
+ "github-mcp",
269
+ "--transport",
270
+ "streamable-http",
271
+ "--port",
272
+ "8000"
273
+ ],
274
+ "env": {
275
+ "TRANSPORT": "streamable-http",
276
+ "HOST": "0.0.0.0",
277
+ "PORT": "8000",
278
+ "MCP_TOOL_MODE": "condensed",
279
+ "ACTIONTOOL": "True",
280
+ "BRANCHTOOL": "True",
281
+ "COLLABORATORTOOL": "True",
282
+ "COMMITTOOL": "True",
283
+ "CONTENTTOOL": "True",
284
+ "GITHUB_ALLOW_DESTRUCTIVE": "False",
285
+ "GITHUB_HTTP_CONNECT_TIMEOUT": "10",
286
+ "GITHUB_HTTP_READ_TIMEOUT": "30",
287
+ "GITHUB_TOKEN": "your_github_token_here",
288
+ "GITHUB_URL": "https://api.github.com",
289
+ "GITHUB_VERIFY": "True",
290
+ "GRAPHQLTOOL": "True",
291
+ "ISSUETOOL": "True",
292
+ "ORGTOOL": "True",
293
+ "PULLTOOL": "True",
294
+ "RELEASETOOL": "True",
295
+ "REPOTOOL": "True",
296
+ "SEARCHTOOL": "True"
297
+ }
298
+ }
299
+ }
300
+ }
301
+ ```
302
+
303
+ Alternatively, connect to a pre-deployed Streamable-HTTP instance by `url`:
304
+
305
+ ```json
306
+ {
307
+ "mcpServers": {
308
+ "github-mcp": {
309
+ "url": "http://localhost:8000/github-mcp/mcp"
310
+ }
311
+ }
312
+ }
313
+ ```
314
+
315
+ Deploying the Streamable-HTTP server via Docker:
316
+
317
+ ```bash
318
+ docker run -d \
319
+ --name github-mcp-mcp \
320
+ -p 8000:8000 \
321
+ -e TRANSPORT=streamable-http \
322
+ -e HOST=0.0.0.0 \
323
+ -e PORT=8000 \
324
+ -e MCP_TOOL_MODE=condensed \
325
+ -e ACTIONTOOL=True \
326
+ -e BRANCHTOOL=True \
327
+ -e COLLABORATORTOOL=True \
328
+ -e COMMITTOOL=True \
329
+ -e CONTENTTOOL=True \
330
+ -e GITHUB_ALLOW_DESTRUCTIVE=False \
331
+ -e GITHUB_HTTP_CONNECT_TIMEOUT=10 \
332
+ -e GITHUB_HTTP_READ_TIMEOUT=30 \
333
+ -e GITHUB_TOKEN=your_github_token_here \
334
+ -e GITHUB_URL=https://api.github.com \
335
+ -e GITHUB_VERIFY=True \
336
+ -e GRAPHQLTOOL=True \
337
+ -e ISSUETOOL=True \
338
+ -e ORGTOOL=True \
339
+ -e PULLTOOL=True \
340
+ -e RELEASETOOL=True \
341
+ -e REPOTOOL=True \
342
+ -e SEARCHTOOL=True \
343
+ knucklessg1/github-agent:mcp
344
+ ```
345
+
346
+ _Auto-generated from the code-read env surface (`MCP_TOOL_MODE` + package vars) — do not edit._
347
+ <!-- MCP-CONFIG-EXAMPLES:END -->
348
+
349
+ <!-- BEGIN GENERATED: additional-deployment-options -->
350
+ ### Additional Deployment Options
351
+
352
+ `github-agent` can also run as a **local container** (Docker / Podman / `uv`) or be
353
+ consumed from a **remote deployment**. The
354
+ [Deployment guide](https://knuckles-team.github.io/github-agent/deployment/) has full, copy-paste
355
+ `mcp_config.json` for all four transports — **stdio**, **streamable-http**,
356
+ **local container / uv**, and **remote URL**:
357
+
358
+ - **Local container / uv** — launch the server from `mcp_config.json` via `uvx`,
359
+ `docker run`, or `podman run`, or point at a local streamable-http container by `url`.
360
+ - **Remote URL** — connect to a server deployed behind Caddy at
361
+ `http://github-mcp.arpa/mcp` using the `"url"` key.
362
+ <!-- END GENERATED: additional-deployment-options -->
363
+
364
+ ---
365
+
366
+ ## Environment Variables
367
+
368
+ <!-- ENV-VARS-TABLE:START -->
369
+
370
+ #### Package environment variables
371
+
372
+ | Variable | Example | Description |
373
+ |----------|---------|-------------|
374
+ | `HOST` | `0.0.0.0` | |
375
+ | `PORT` | `8000` | |
376
+ | `TRANSPORT` | `stdio` | options: stdio, streamable-http, sse |
377
+ | `ENABLE_OTEL` | `True` | |
378
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | `http://localhost:8080/api/public/otel` | |
379
+ | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` | `pk-...` | |
380
+ | `OTEL_EXPORTER_OTLP_SECRET_KEY` | `sk-...` | |
381
+ | `OTEL_EXPORTER_OTLP_PROTOCOL` | `http/protobuf` | |
382
+ | `EUNOMIA_TYPE` | `none` | options: none, embedded, remote |
383
+ | `EUNOMIA_POLICY_FILE` | `mcp_policies.json` | |
384
+ | `EUNOMIA_REMOTE_URL` | `http://eunomia-server:8000` | |
385
+ | `GITHUB_URL` | `https://api.github.com` | |
386
+ | `GITHUB_VERIFY` | `True` | |
387
+ | `GITHUB_SSL_VERIFY` | `True` | GITHUB_SSL_VERIFY takes precedence over GITHUB_VERIFY when set |
388
+ | `GITHUB_ALLOW_DESTRUCTIVE` | `False` | Allow destructive (delete/force) operations |
389
+ | `GITHUB_HTTP_CONNECT_TIMEOUT` | `10` | HTTP client timeouts (seconds) |
390
+ | `GITHUB_HTTP_READ_TIMEOUT` | `30` | |
391
+ | `DEBUG` | `False` | |
392
+ | `PYTHONUNBUFFERED` | `1` | |
393
+ | `GITHUB_TOKEN` | `your_github_token_here` | |
394
+ | `ACTIONTOOL` | `True` | MCP tools table (condensed action-routed surface). |
395
+ | `BRANCHTOOL` | `True` | |
396
+ | `COLLABORATORTOOL` | `True` | |
397
+ | `COMMITTOOL` | `True` | |
398
+ | `CONTENTTOOL` | `True` | |
399
+ | `GRAPHQLTOOL` | `True` | |
400
+ | `ISSUETOOL` | `True` | |
401
+ | `ORGTOOL` | `True` | |
402
+ | `PULLTOOL` | `True` | |
403
+ | `RELEASETOOL` | `True` | |
404
+ | `REPOTOOL` | `True` | |
405
+ | `SEARCHTOOL` | `True` | |
406
+
407
+ #### Inherited agent-utilities variables (apply to every connector)
408
+
409
+ | Variable | Example | Description |
410
+ |----------|---------|-------------|
411
+ | `MCP_TOOL_MODE` | `condensed` | Tool surface: `condensed` | `verbose` | `both` |
412
+ | `MCP_ENABLED_TOOLS` | — | Comma-separated tool allow-list |
413
+ | `MCP_DISABLED_TOOLS` | — | Comma-separated tool deny-list |
414
+ | `MCP_ENABLED_TAGS` | — | Comma-separated tag allow-list |
415
+ | `MCP_DISABLED_TAGS` | — | Comma-separated tag deny-list |
416
+ | `MCP_CLIENT_AUTH` | — | Outbound MCP auth (`oidc-client-credentials` for fleet calls) |
417
+ | `OIDC_CLIENT_ID` | — | OIDC client id (service-account auth) |
418
+ | `OIDC_CLIENT_SECRET` | — | OIDC client secret (service-account auth) |
419
+ | `MCP_URL` | `http://localhost:8000/mcp` | URL of the MCP server the agent connects to |
420
+ | `PROVIDER` | `openai` | LLM provider for the agent |
421
+ | `MODEL_ID` | `gpt-4o` | Model id for the agent |
422
+ | `ENABLE_WEB_UI` | `True` | Serve the AG-UI web interface |
423
+
424
+ _32 package + 12 inherited variable(s). Auto-generated from `.env.example` + the shared agent-utilities set — do not edit._
425
+ <!-- ENV-VARS-TABLE:END -->
426
+
427
+
428
+ Every variable the server reads.
429
+
430
+ ### Connection & Credentials
431
+ | Variable | Description | Default |
432
+ |----------|-------------|---------|
433
+ | `GITHUB_URL` | GitHub REST API base URL (use your GitHub Enterprise Server URL for self-hosted) | `https://api.github.com` |
434
+ | `GITHUB_TOKEN` | GitHub Personal Access Token / OAuth token (`Authorization: Bearer <token>`) | — |
435
+ | `GITHUB_VERIFY` | TLS certificate verification | `True` |
436
+
437
+ ### MCP server / transport
438
+ | Variable | Description | Default |
439
+ |----------|-------------|---------|
440
+ | `TRANSPORT` | `stdio`, `streamable-http`, or `sse` | `stdio` |
441
+ | `HOST` | Bind host (HTTP transports) | `0.0.0.0` |
442
+ | `PORT` | Bind port (HTTP transports) | `8000` |
443
+ | `MCP_TOOL_MODE` | Tool surface: `condensed`, `verbose`, or `both` | `condensed` |
444
+ | `MCP_ENABLED_TOOLS` / `MCP_DISABLED_TOOLS` | Comma-separated tool allow/deny list | — |
445
+ | `MCP_ENABLED_TAGS` / `MCP_DISABLED_TAGS` | Comma-separated tag allow/deny list | — |
446
+ | `DEBUG` | Verbose logging | `False` |
447
+ | `PYTHONUNBUFFERED` | Unbuffered stdout (recommended in containers) | `1` |
448
+
449
+ ### Tool toggles
450
+ Each action-routed tool can be disabled individually via its toggle env var (set to `false`).
451
+ The full list is in the [Available MCP Tools](#available-mcp-tools) table above.
452
+
453
+ | Variable | Tool | Default |
454
+ |----------|------|---------|
455
+ | `ACTIONTOOL` | `github_actions` — Actions workflows and runs | `True` |
456
+ | `BRANCHTOOL` | `github_branches` — branches | `True` |
457
+ | `COLLABORATORTOOL` | `github_collaborators` — repository collaborators | `True` |
458
+ | `COMMITTOOL` | `github_commits` — commits | `True` |
459
+ | `CONTENTTOOL` | `github_contents` — file contents | `True` |
460
+ | `ISSUETOOL` | `github_issues` — issues | `True` |
461
+ | `ORGTOOL` | `github_orgs` — organizations | `True` |
462
+ | `PULLTOOL` | `github_pulls` — pull requests | `True` |
463
+ | `RELEASETOOL` | `github_releases` — releases | `True` |
464
+ | `REPOTOOL` | `github_repos` — repositories and Pages sites | `True` |
465
+ | `SEARCHTOOL` | `github_search` — search repositories, issues, code | `True` |
466
+
467
+ ### Telemetry & governance
468
+ | Variable | Description | Default |
469
+ |----------|-------------|---------|
470
+ | `ENABLE_OTEL` | Enable OpenTelemetry export | `True` |
471
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint | — |
472
+ | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` / `OTEL_EXPORTER_OTLP_SECRET_KEY` | OTLP auth keys | — |
473
+ | `OTEL_EXPORTER_OTLP_PROTOCOL` | OTLP protocol (e.g. `http/protobuf`) | — |
474
+ | `EUNOMIA_TYPE` | Authorization mode: `none`, `embedded`, `remote` | `none` |
475
+ | `EUNOMIA_POLICY_FILE` | Embedded policy file | `mcp_policies.json` |
476
+ | `EUNOMIA_REMOTE_URL` | Remote Eunomia server URL | — |
477
+
478
+ ### Agent CLI (full `[agent]` runtime only)
479
+ | Variable | Description | Default |
480
+ |----------|-------------|---------|
481
+ | `MCP_URL` | URL of the MCP server the agent connects to | `http://localhost:8000/mcp` |
482
+ | `PROVIDER` | LLM provider (e.g. `openai`) | `openai` |
483
+ | `MODEL_ID` | Model id (e.g. `gpt-4o`) | `gpt-4o` |
484
+ | `ENABLE_WEB_UI` | Serve the AG-UI web interface | `True` |
485
+
486
+ See [`.env.example`](.env.example) for a copy-paste starting point.
487
+
488
+ ## Agent
489
+
490
+ This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts seamlessly with the **Agent Web UI (AG-UI)** and Terminal interface.
491
+
492
+ ### Running the Agent CLI
493
+ To start the interactive command-line agent:
494
+
495
+ ```bash
496
+ # Set credentials
497
+ export GITHUB_URL="your_value"
498
+ export GITHUB_VERIFY="your_value"
499
+ export DEBUG="your_value"
500
+ export PYTHONUNBUFFERED="your_value"
501
+ export GITHUB_TOKEN="your_value"
502
+
503
+ # Run the agent server
504
+ github-agent --provider openai --model-id gpt-4o
505
+ ```
506
+
507
+ ### Docker Compose Orchestration
508
+ The following `docker/agent.compose.yml` configures the Agent, Web UI, and Terminal Interface together:
509
+
510
+ ```yaml
511
+ version: '3.8'
512
+
513
+ services:
514
+ github-agent-mcp:
515
+ image: knucklessg1/github-agent:mcp
516
+ container_name: github-agent-mcp
517
+ hostname: github-agent-mcp
518
+ restart: always
519
+ env_file:
520
+ - ../.env
521
+ environment:
522
+ - PYTHONUNBUFFERED=1
523
+ - HOST=0.0.0.0
524
+ - PORT=8000
525
+ - TRANSPORT=streamable-http
526
+ ports:
527
+ - "8000:8000"
528
+ healthcheck:
529
+ test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
530
+ interval: 30s
531
+ timeout: 10s
532
+ retries: 3
533
+ start_period: 10s
534
+ logging:
535
+ driver: json-file
536
+ options:
537
+ max-size: "10m"
538
+ max-file: "3"
539
+
540
+ github-agent-agent:
541
+ image: knucklessg1/github-agent:latest
542
+ container_name: github-agent-agent
543
+ hostname: github-agent-agent
544
+ restart: always
545
+ depends_on:
546
+ - github-agent-mcp
547
+ env_file:
548
+ - ../.env
549
+ command: [ "github-agent" ]
550
+ environment:
551
+ - PYTHONUNBUFFERED=1
552
+ - HOST=0.0.0.0
553
+ - PORT=9016
554
+ - MCP_URL=http://github-agent-mcp:8000/mcp
555
+ - PROVIDER=${PROVIDER:-openai}
556
+ - MODEL_ID=${MODEL_ID:-gpt-4o}
557
+ - ENABLE_WEB_UI=True
558
+ - ENABLE_OTEL=True
559
+ ports:
560
+ - "9016:9016"
561
+ healthcheck:
562
+ test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9016/health')"]
563
+ interval: 30s
564
+ timeout: 10s
565
+ retries: 3
566
+ start_period: 10s
567
+ logging:
568
+ driver: json-file
569
+ options:
570
+ max-size: "10m"
571
+ max-file: "3"
572
+
573
+ ```
574
+
575
+ Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/agent.md](docs/agent.md).
576
+
577
+ ---
578
+
579
+ ## Security & Governance
580
+
581
+ Built directly upon the enterprise-ready [`agent-utilities`](https://github.com/Knuckles-Team/agent-utilities) core, standard security parameters are fully supported:
582
+
583
+ ### Access Control & Policy Enforcement
584
+ - **Eunomia Policies:** Fine-grained, policy-driven tool authorization. Supports `none`, local `embedded` (`mcp_policies.json`), or centralized `remote` modes.
585
+ - **OIDC Token Delegation:** Compliant with RFC 8693 token exchange for flowing authenticating user credentials from Web UI / ACP → Agent → MCP.
586
+ - **Scoped Credentials:** Execution context runs restricted to the specific caller identity.
587
+
588
+ ### Runtime Security Grid
589
+ | Feature | Functionality | Enablement |
590
+ |---------|---------------|------------|
591
+ | **Tool Guard** | Sensitivity inspection with human-in-the-loop validation | Enabled by default |
592
+ | **Prompt Injection Defense** | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |
593
+ | **Context Safety Guard** | Stuck-loop detectors and contextual overflow preemptive alerts | Enabled by default |
594
+
595
+ ---
596
+
597
+ ## Installation
598
+
599
+ Pick the extra that matches what you want to run:
600
+
601
+ | Extra | Installs | Use when |
602
+ |-------|----------|----------|
603
+ | `github-agent[mcp]` | Slim MCP server only (`agent-utilities[mcp]` — FastMCP/FastAPI) | You only run the **MCP server** (smallest install / image) |
604
+ | `github-agent[agent]` | Full agent runtime (`agent-utilities[agent,logfire]` — Pydantic AI + the epistemic-graph engine) | You run the **integrated agent** |
605
+ | `github-agent[all]` | Everything (`mcp` + `agent` + `logfire`) | Development / both surfaces |
606
+
607
+ ```bash
608
+ # MCP server only (recommended for tool hosting — slim deps)
609
+ uv pip install "github-agent[mcp]"
610
+
611
+ # Full agent runtime (Pydantic AI + epistemic-graph engine)
612
+ uv pip install "github-agent[agent]"
613
+
614
+ # Everything (development)
615
+ uv pip install "github-agent[all]" # or: python -m pip install "github-agent[all]"
616
+ ```
617
+
618
+ ### Container images (`:mcp` vs `:agent`)
619
+
620
+ One multi-stage `docker/Dockerfile` builds two right-sized images, selected by `--target`:
621
+
622
+ | Image tag | Build target | Contents | Entrypoint |
623
+ |-----------|--------------|----------|------------|
624
+ | `knucklessg1/github-agent:mcp` | `--target mcp` | `github-agent[mcp]` — **slim**, no engine/`pydantic-ai`/`dspy`/`llama-index`/`tree-sitter` | `github-mcp` |
625
+ | `knucklessg1/github-agent:latest` | `--target agent` (default) | `github-agent[agent]` — **full** agent runtime + epistemic-graph engine | `github-agent` |
626
+
627
+ ```bash
628
+ docker build --target mcp -t knucklessg1/github-agent:mcp docker/ # slim MCP server
629
+ docker build --target agent -t knucklessg1/github-agent:latest docker/ # full agent
630
+ ```
631
+
632
+ `docker/mcp.compose.yml` runs the slim `:mcp` server; `docker/agent.compose.yml` runs the
633
+ agent (`:latest`) with a co-located `:mcp` sidecar.
634
+
635
+ ### Knowledge-graph database (`epistemic-graph`)
636
+
637
+ The **full agent** (`[agent]` / `:latest`) embeds the **epistemic-graph** engine (pulled in
638
+ transitively via `agent-utilities[agent]`). For production — or to share one knowledge graph
639
+ across multiple agents — run **epistemic-graph as its own database container** and point the
640
+ agent at it instead of embedding it. Deployment recipes (single-node + Raft HA), connection
641
+ config, and the full database architecture (with diagrams) are documented in the
642
+ [epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
643
+ The slim `[mcp]` server does **not** require the database.
644
+
645
+ ---
646
+
647
+ ## Documentation
648
+
649
+ The complete documentation is published as the
650
+ [official documentation site](https://knuckles-team.github.io/github-agent/) and is the
651
+ recommended reference for installation, deployment, and day-to-day operation.
652
+
653
+ | Page | Contents |
654
+ |---|---|
655
+ | [Installation](https://knuckles-team.github.io/github-agent/installation/) | pip, source, extras, prebuilt Docker image |
656
+ | [Deployment](https://knuckles-team.github.io/github-agent/deployment/) | run the MCP and agent servers, Compose, Caddy + Technitium, env config |
657
+ | [Usage](https://knuckles-team.github.io/github-agent/usage/) | the MCP tools, the `Api` client, the CLI |
658
+ | [Overview](https://knuckles-team.github.io/github-agent/overview/) | supervisor architecture and specialized agents |
659
+ | [Concepts](https://knuckles-team.github.io/github-agent/concepts/) | concept registry (`CONCEPT:GH-*`) |
660
+
661
+ ---
662
+
663
+ ## Repository Owners
664
+
665
+ <img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=Knucklessg1&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
666
+
667
+ ![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)
668
+ ![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)
669
+
670
+ ---
671
+
672
+ ## Contribute
673
+
674
+ Contributions are welcome! Please ensure code quality by executing local checks before submitting pull requests:
675
+ - Format code using `ruff format .`
676
+ - Lint code using `ruff check .`
677
+ - Validate type-safety with `mypy .`
678
+ - Execute test suites using `pytest`
679
+
680
+
681
+ <!-- BEGIN agent-os-genesis-deploy (generated; do not edit between markers) -->
682
+
683
+ ## Deploy with `agent-os-genesis`
684
+
685
+ This package can be provisioned for you — skill-guided — by the **`agent-os-genesis`**
686
+ universal skill (its *single-package deploy mode*): it picks your install method, seeds
687
+ secrets to OpenBao/Vault (or `.env`), trusts your enterprise CA, registers the MCP
688
+ server, and verifies it — the same machinery that stands up the whole Agent OS, narrowed
689
+ to just this package. Ask your agent to **"deploy `github-agent` with agent-os-genesis"**.
690
+
691
+ | Install mode | Command |
692
+ |------|---------|
693
+ | Bare-metal, prod (PyPI) | `uvx github-mcp` · or `uv tool install github-agent` |
694
+ | Bare-metal, dev (editable) | `uv pip install -e ".[all]"` · or `pip install -e ".[all]"` |
695
+ | Container, prod | deploy `knucklessg1/github-agent:latest` via docker-compose / swarm / podman / podman-compose / kubernetes |
696
+ | Container, dev (editable) | deploy `docker/compose.dev.yml` (source-mounted at `/src`; edits live on restart) |
697
+
698
+ Secrets are read-existing + seeded via `vault_sync` — you are only prompted for what's missing.
699
+
700
+ <!-- END agent-os-genesis-deploy -->