github-agent 2.4.15__tar.gz → 2.5.1__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 (121) hide show
  1. {github_agent-2.4.15 → github_agent-2.5.1}/PKG-INFO +116 -121
  2. {github_agent-2.4.15 → github_agent-2.5.1}/README.md +114 -119
  3. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/__init__.py +11 -3
  4. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_dependabot.py +2 -0
  5. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_orgs.py +4 -4
  6. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_pages.py +2 -2
  7. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_pulls.py +2 -0
  8. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/auth.py +0 -10
  9. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/connector_sources.py +5 -5
  10. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/kg_ingest.py +17 -7
  11. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/mcp_server.py +29 -3
  12. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/ontology/__init__.py +1 -1
  13. github_agent-2.5.1/github_agent/ontology/access_contracts.ttl +40 -0
  14. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/ontology/certification.json +3 -3
  15. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/ontology/github.ttl +60 -61
  16. github_agent-2.5.1/github_agent/ontology/shapes/connector.shacl.ttl +24 -0
  17. github_agent-2.5.1/github_agent/skills/github-actions-ci-review/SKILL.md +60 -0
  18. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-agent-development/SKILL.md +17 -2
  19. github_agent-2.5.1/github_agent/skills/github-agent-operations/SKILL.md +79 -0
  20. github_agent-2.5.1/github_agent/skills/github-backlog-planner/SKILL.md +67 -0
  21. github_agent-2.5.1/github_agent/skills/github-ci-failure-sweep/SKILL.md +60 -0
  22. github_agent-2.5.1/github_agent/skills/github-dependabot-review/SKILL.md +49 -0
  23. github_agent-2.5.1/github_agent/skills/github-issue-tracking/SKILL.md +56 -0
  24. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-org-remediation-loop/SKILL.md +19 -1
  25. github_agent-2.5.1/github_agent/skills/github-pr-review-sweep/SKILL.md +73 -0
  26. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-project-provisioner/SKILL.md +16 -0
  27. github_agent-2.5.1/github_agent/skills/github-pull-request-create/SKILL.md +52 -0
  28. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-pull-request-review/SKILL.md +19 -1
  29. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-repository-management/SKILL.md +19 -1
  30. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-tools/SKILL.md +16 -0
  31. github_agent-2.5.1/github_agent/skills/github-triage-resolver/SKILL.md +69 -0
  32. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent.egg-info/PKG-INFO +116 -121
  33. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent.egg-info/SOURCES.txt +5 -0
  34. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent.egg-info/requires.txt +1 -1
  35. {github_agent-2.4.15 → github_agent-2.5.1}/pyproject.toml +2 -2
  36. github_agent-2.5.1/tests/test_access_contracts.py +105 -0
  37. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_cq_paths.py +4 -5
  38. github_agent-2.5.1/tests/test_destructive_declaration.py +95 -0
  39. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_kg_ingest.py +7 -3
  40. github_agent-2.5.1/tests/test_ontology_one_schema.py +57 -0
  41. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_ontology_parent_link.py +17 -12
  42. github_agent-2.5.1/tests/test_scion_sdk_0_10_imports.py +59 -0
  43. github_agent-2.4.15/github_agent/ontology/shapes/connector.shacl.ttl +0 -104
  44. github_agent-2.4.15/github_agent/skills/github-actions-ci-review/SKILL.md +0 -42
  45. github_agent-2.4.15/github_agent/skills/github-agent-operations/SKILL.md +0 -61
  46. github_agent-2.4.15/github_agent/skills/github-backlog-planner/SKILL.md +0 -49
  47. github_agent-2.4.15/github_agent/skills/github-ci-failure-sweep/SKILL.md +0 -42
  48. github_agent-2.4.15/github_agent/skills/github-dependabot-review/SKILL.md +0 -31
  49. github_agent-2.4.15/github_agent/skills/github-issue-tracking/SKILL.md +0 -38
  50. github_agent-2.4.15/github_agent/skills/github-pr-review-sweep/SKILL.md +0 -55
  51. github_agent-2.4.15/github_agent/skills/github-pull-request-create/SKILL.md +0 -35
  52. github_agent-2.4.15/github_agent/skills/github-triage-resolver/SKILL.md +0 -51
  53. {github_agent-2.4.15 → github_agent-2.5.1}/LICENSE +0 -0
  54. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/__main__.py +0 -0
  55. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/__init__.py +0 -0
  56. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_base.py +0 -0
  57. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_branches.py +0 -0
  58. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_comments.py +0 -0
  59. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_commits.py +0 -0
  60. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_contents.py +0 -0
  61. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_issues.py +0 -0
  62. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_releases.py +0 -0
  63. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_repos.py +0 -0
  64. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_search.py +0 -0
  65. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api/api_client_workflows.py +0 -0
  66. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/api_client.py +0 -0
  67. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/connector_contracts.py +0 -0
  68. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/connectors/__init__.py +0 -0
  69. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/github_gql.py +0 -0
  70. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/github_http.py +0 -0
  71. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/github_input_models.py +0 -0
  72. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/github_response_models.py +0 -0
  73. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/mcp/__init__.py +0 -0
  74. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/mcp_config.json +0 -0
  75. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/ontology/fixtures/records.json +0 -0
  76. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/ontology/mappings/source.yaml +0 -0
  77. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/ontology/migrations/manifest.json +0 -0
  78. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/prompts/__init__.py +0 -0
  79. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/prompts/github-mcp-operator.json +0 -0
  80. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/prompts/github-mcp-release-manager.json +0 -0
  81. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/prompts/github-mcp-repository-administrator.json +0 -0
  82. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/prompts/github-mcp-triage-lead.json +0 -0
  83. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/__init__.py +0 -0
  84. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-backlog-planner/references/addressed-heuristics.md +0 -0
  85. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-backlog-planner/scripts/build_plan.py +0 -0
  86. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-ci-failure-sweep/scripts/summarize_runs.py +0 -0
  87. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-org-remediation-loop/scripts/classify_fix_risk.py +0 -0
  88. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-pr-review-sweep/scripts/summarize_prs.py +0 -0
  89. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-project-provisioner/scripts/enable_pages.py +0 -0
  90. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-tools/code-reviewer.md +0 -0
  91. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-tools/scripts/fetch_comments.py +0 -0
  92. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-tools/scripts/inspect_pr_checks.py +0 -0
  93. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-triage-resolver/references/resolution-rules.md +0 -0
  94. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-triage-resolver/scripts/classify_safe.py +0 -0
  95. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent/skills/github-triage-resolver/scripts/gh_write.py +0 -0
  96. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent.egg-info/dependency_links.txt +0 -0
  97. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent.egg-info/entry_points.txt +0 -0
  98. {github_agent-2.4.15 → github_agent-2.5.1}/github_agent.egg-info/top_level.txt +0 -0
  99. {github_agent-2.4.15 → github_agent-2.5.1}/setup.cfg +0 -0
  100. {github_agent-2.4.15 → github_agent-2.5.1}/tests/conftest.py +0 -0
  101. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_api_client_endpoints.py +0 -0
  102. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_api_validation.py +0 -0
  103. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_auth_client_edge_cases.py +0 -0
  104. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_default_content_surfaces.py +0 -0
  105. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_fleet_name.py +0 -0
  106. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_github_agent_api_brute_force_coverage.py +0 -0
  107. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_github_agent_brute_force_coverage.py +0 -0
  108. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_github_gql.py +0 -0
  109. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_github_http.py +0 -0
  110. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_ingest_sources.py +0 -0
  111. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_init_dynamics.py +0 -0
  112. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_model_fields.py +0 -0
  113. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_pages.py +0 -0
  114. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_skill_backlog_build_plan.py +0 -0
  115. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_skill_ci_failure_sweep_summarize_runs.py +0 -0
  116. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_skill_github_tools_fetch_comments.py +0 -0
  117. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_skill_github_tools_inspect_pr_checks.py +0 -0
  118. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_skill_org_remediation_classify_fix_risk.py +0 -0
  119. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_skill_pr_review_sweep_summarize_prs.py +0 -0
  120. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_skill_triage_resolver_classify_safe.py +0 -0
  121. {github_agent-2.4.15 → github_agent-2.5.1}/tests/test_startup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github-agent
3
- Version: 2.4.15
3
+ Version: 2.5.1
4
4
  Summary: GitHub Agent for MCP
5
5
  Author-email: Repository Maintainers <maintainers@knuckles.team>
6
6
  License: MIT
@@ -13,7 +13,7 @@ Requires-Python: >=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
15
  Requires-Dist: requests>=2.34.2
16
- Requires-Dist: scion-sdk[graphql,mcp]>=0.9.0
16
+ Requires-Dist: scion-sdk[graphql,mcp]<0.15,>=0.14.1
17
17
  Provides-Extra: mcp
18
18
  Provides-Extra: all
19
19
  Provides-Extra: test
@@ -44,9 +44,8 @@ Dynamic: license-file
44
44
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/github-agent)
45
45
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/github-agent)
46
46
 
47
- *Version: 2.4.9*
48
-
49
- > **Documentation** — Installation, deployment, and usage across the MCP, API, and
47
+ > **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
48
+ > and A2A agent interfaces are maintained in the
50
49
  > [official documentation](https://knuckles-team.github.io/github-agent/).
51
50
 
52
51
  ---
@@ -223,7 +222,7 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
223
222
 
224
223
  > **Install the connector-focused `[mcp]` extra.** Examples use `github-agent[mcp]` to add
225
224
  > FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
226
- > still carries `epistemic-graph[full]`. The `[agent-runtime]` extra additionally
225
+ > still carries `medulla[full]`. The `[agent-runtime]` extra additionally
227
226
  > enables model orchestration.
228
227
 
229
228
  #### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
@@ -247,7 +246,6 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
247
246
  "COMMITTOOL": "True",
248
247
  "CONTENTTOOL": "True",
249
248
  "DEPENDABOTTOOL": "True",
250
- "GITHUB_ALLOW_DESTRUCTIVE": "False",
251
249
  "GITHUB_HTTP_CONNECT_TIMEOUT": "10",
252
250
  "GITHUB_HTTP_READ_TIMEOUT": "30",
253
251
  "GITHUB_TOKEN": "your_github_token_here",
@@ -298,7 +296,6 @@ own runtime secret boundary.
298
296
  "COMMITTOOL": "True",
299
297
  "CONTENTTOOL": "True",
300
298
  "DEPENDABOTTOOL": "True",
301
- "GITHUB_ALLOW_DESTRUCTIVE": "False",
302
299
  "GITHUB_HTTP_CONNECT_TIMEOUT": "10",
303
300
  "GITHUB_HTTP_READ_TIMEOUT": "30",
304
301
  "GITHUB_TOKEN": "your_github_token_here",
@@ -348,7 +345,6 @@ docker run -i --rm \
348
345
  -e COMMITTOOL=True \
349
346
  -e CONTENTTOOL=True \
350
347
  -e DEPENDABOTTOOL=True \
351
- -e GITHUB_ALLOW_DESTRUCTIVE=False \
352
348
  -e GITHUB_HTTP_CONNECT_TIMEOUT=10 \
353
349
  -e GITHUB_HTTP_READ_TIMEOUT=30 \
354
350
  -e GITHUB_TOKEN=your_github_token_here \
@@ -389,6 +385,112 @@ the detailed transport contract.
389
385
 
390
386
  ---
391
387
 
388
+ ## Agent
389
+
390
+ This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts smoothly with the **Agent Web UI (AG-UI)** and Terminal interface.
391
+
392
+ ### Running the Agent CLI
393
+ To start the interactive command-line agent:
394
+
395
+ ```bash
396
+ # Set credentials
397
+ export GITHUB_URL="your_value"
398
+ # Configure TLS_PROFILE or TLS_PROFILE_REF through AgentConfig for private PKI.
399
+ export DEBUG="your_value"
400
+ export PYTHONUNBUFFERED="your_value"
401
+ export GITHUB_TOKEN="your_value"
402
+
403
+ # Run the agent server
404
+ github-agent --provider openai --model-id gpt-4o
405
+ ```
406
+
407
+ ### Docker Compose Orchestration
408
+
409
+ ```yaml
410
+ version: '3.8'
411
+
412
+ services:
413
+ github-agent-mcp:
414
+ container_name: github-agent-mcp
415
+ hostname: github-agent-mcp
416
+ restart: always
417
+ env_file:
418
+ - ../.env
419
+ environment:
420
+ - PYTHONUNBUFFERED=1
421
+ - HOST=0.0.0.0
422
+ - PORT=8000
423
+ - TRANSPORT=streamable-http
424
+ ports:
425
+ - "8000:8000"
426
+ healthcheck:
427
+ test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
428
+ interval: 30s
429
+ timeout: 10s
430
+ retries: 3
431
+ start_period: 10s
432
+ logging:
433
+ driver: json-file
434
+ options:
435
+ max-size: "10m"
436
+ max-file: "3"
437
+
438
+ image: example/github-agent@sha256:<digest>
439
+ container_name: github-agent-agent
440
+ hostname: github-agent-agent
441
+ restart: always
442
+ depends_on:
443
+ - github-agent-mcp
444
+ env_file:
445
+ - ../.env
446
+ command: [ "github-agent" ]
447
+ environment:
448
+ - PYTHONUNBUFFERED=1
449
+ - HOST=0.0.0.0
450
+ - PORT=9016
451
+ - MCP_URL=http://github-agent-mcp:8000/mcp
452
+ - PROVIDER=${PROVIDER:-openai}
453
+ - MODEL_ID=${MODEL_ID:-gpt-4o}
454
+ - ENABLE_WEB_UI=True
455
+ - ENABLE_OTEL=True
456
+ ports:
457
+ - "9016:9016"
458
+ healthcheck:
459
+ test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9016/health')"]
460
+ interval: 30s
461
+ timeout: 10s
462
+ retries: 3
463
+ start_period: 10s
464
+ logging:
465
+ driver: json-file
466
+ options:
467
+ max-size: "10m"
468
+ max-file: "3"
469
+
470
+ ```
471
+
472
+ Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/deployment.md](docs/deployment.md).
473
+
474
+ ---
475
+
476
+ ## Security & Governance
477
+
478
+ Built directly upon the enterprise-ready [`scion-sdk`](https://github.com/Knuckles-Team/scion-sdk) core, standard security parameters are fully supported:
479
+
480
+ ### Access Control & Policy Enforcement
481
+ - **Eunomia Policies:** Fine-grained, policy-driven tool authorization. Supports `none`, local `embedded` (`mcp_policies.json`), or centralized `remote` modes.
482
+ - **OIDC Token Delegation:** Compliant with RFC 8693 token exchange for flowing authenticating user credentials from Web UI / ACP → Agent → MCP.
483
+ - **Scoped Credentials:** Execution context runs restricted to the specific caller identity.
484
+
485
+ ### Runtime Security Grid
486
+ | Feature | Feature | Enablement |
487
+ |---------|---------------|------------|
488
+ | **Tool Guard** | Sensitivity inspection with human-in-the-loop validation | Enabled by default |
489
+ | **Prompt Injection Defense** | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |
490
+ | **Context Safety Guard** | Stuck-loop detectors and contextual overflow preemptive alerts | Enabled by default |
491
+
492
+ ---
493
+
392
494
  ## Environment Variables
393
495
 
394
496
  <!-- ENV-VARS-TABLE:START -->
@@ -412,7 +514,6 @@ the detailed transport contract.
412
514
  | `TLS_PROFILE` | `private-ca` | AgentConfig named transport profile |
413
515
  | `TLS_PROFILE_REF` | `secret://transport/provider` | Direct runtime profile reference |
414
516
  | `TLS_PROFILES_REF` | `secret://transport/catalog` | Named runtime profile catalog |
415
- | `GITHUB_ALLOW_DESTRUCTIVE` | `False` | Allow destructive (delete/force) operations |
416
517
  | `GITHUB_HTTP_CONNECT_TIMEOUT` | `10` | HTTP client timeouts (seconds) |
417
518
  | `GITHUB_HTTP_READ_TIMEOUT` | `30` | |
418
519
  | `DEBUG` | `False` | |
@@ -502,110 +603,6 @@ The tool surface is the typed per-operation tools; there are no per-domain toggl
502
603
 
503
604
  See [`.env.example`](.env.example) for a copy-paste starting point.
504
605
 
505
- ## Agent
506
-
507
- This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts smoothly with the **Agent Web UI (AG-UI)** and Terminal interface.
508
-
509
- ### Running the Agent CLI
510
- To start the interactive command-line agent:
511
-
512
- ```bash
513
- # Set credentials
514
- export GITHUB_URL="your_value"
515
- # Configure TLS_PROFILE or TLS_PROFILE_REF through AgentConfig for private PKI.
516
- export DEBUG="your_value"
517
- export PYTHONUNBUFFERED="your_value"
518
- export GITHUB_TOKEN="your_value"
519
-
520
- # Run the agent server
521
- github-agent --provider openai --model-id gpt-4o
522
- ```
523
-
524
- ### Docker Compose Orchestration
525
-
526
- ```yaml
527
- version: '3.8'
528
-
529
- services:
530
- github-agent-mcp:
531
- container_name: github-agent-mcp
532
- hostname: github-agent-mcp
533
- restart: always
534
- env_file:
535
- - ../.env
536
- environment:
537
- - PYTHONUNBUFFERED=1
538
- - HOST=0.0.0.0
539
- - PORT=8000
540
- - TRANSPORT=streamable-http
541
- ports:
542
- - "8000:8000"
543
- healthcheck:
544
- test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
545
- interval: 30s
546
- timeout: 10s
547
- retries: 3
548
- start_period: 10s
549
- logging:
550
- driver: json-file
551
- options:
552
- max-size: "10m"
553
- max-file: "3"
554
-
555
- image: example/github-agent@sha256:<digest>
556
- container_name: github-agent-agent
557
- hostname: github-agent-agent
558
- restart: always
559
- depends_on:
560
- - github-agent-mcp
561
- env_file:
562
- - ../.env
563
- command: [ "github-agent" ]
564
- environment:
565
- - PYTHONUNBUFFERED=1
566
- - HOST=0.0.0.0
567
- - PORT=9016
568
- - MCP_URL=http://github-agent-mcp:8000/mcp
569
- - PROVIDER=${PROVIDER:-openai}
570
- - MODEL_ID=${MODEL_ID:-gpt-4o}
571
- - ENABLE_WEB_UI=True
572
- - ENABLE_OTEL=True
573
- ports:
574
- - "9016:9016"
575
- healthcheck:
576
- test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9016/health')"]
577
- interval: 30s
578
- timeout: 10s
579
- retries: 3
580
- start_period: 10s
581
- logging:
582
- driver: json-file
583
- options:
584
- max-size: "10m"
585
- max-file: "3"
586
-
587
- ```
588
-
589
- Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/deployment.md](docs/deployment.md).
590
-
591
- ---
592
-
593
- ## Security & Governance
594
-
595
- Built directly upon the enterprise-ready [`scion-sdk`](https://github.com/Knuckles-Team/scion-sdk) core, standard security parameters are fully supported:
596
-
597
- ### Access Control & Policy Enforcement
598
- - **Eunomia Policies:** Fine-grained, policy-driven tool authorization. Supports `none`, local `embedded` (`mcp_policies.json`), or centralized `remote` modes.
599
- - **OIDC Token Delegation:** Compliant with RFC 8693 token exchange for flowing authenticating user credentials from Web UI / ACP → Agent → MCP.
600
- - **Scoped Credentials:** Execution context runs restricted to the specific caller identity.
601
-
602
- ### Runtime Security Grid
603
- | Feature | Feature | Enablement |
604
- |---------|---------------|------------|
605
- | **Tool Guard** | Sensitivity inspection with human-in-the-loop validation | Enabled by default |
606
- | **Prompt Injection Defense** | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |
607
- | **Context Safety Guard** | Stuck-loop detectors and contextual overflow preemptive alerts | Enabled by default |
608
-
609
606
  ---
610
607
 
611
608
  ## Installation
@@ -614,7 +611,7 @@ Pick the extra that matches what the operator want to run:
614
611
 
615
612
  | Extra | Installs | Use when |
616
613
  |-------|----------|----------|
617
- | `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `epistemic-graph[full]`) | The operator only run the **MCP server** (smallest install / image) |
614
+ | `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `medulla[full]`) | The operator only run the **MCP server** (smallest install / image) |
618
615
  | `github-agent[all]` | Everything (`mcp` + `agent` + `logfire`) | Development / both surfaces |
619
616
 
620
617
  ```bash
@@ -639,14 +636,14 @@ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
639
636
 
640
637
  agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
641
638
 
642
- ### Knowledge-graph database (`epistemic-graph`)
639
+ ### Knowledge-graph database (`medulla`)
643
640
 
644
- Scion SDK core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
641
+ Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
645
642
  deployments can use the bundled engine. For production or shared state, run
646
- **epistemic-graph as a dedicated database service** and configure the runtime to use it.
643
+ **medulla as a dedicated database service** and configure the runtime to use it.
647
644
  Deployment recipes (single-node + Raft HA), connection configuration, and architecture
648
645
  diagrams are documented in the
649
- [epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
646
+ [medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
650
647
 
651
648
  ---
652
649
 
@@ -683,8 +680,6 @@ Contributions are welcome! Please ensure code quality by running local checks be
683
680
  - Validate type-safety with `mypy .`
684
681
  - Run test suites using `pytest`
685
682
 
686
-
687
-
688
683
  <!-- GOVERNED-CAPABILITY:START -->
689
684
  ## Governed capability contract
690
685
 
@@ -20,9 +20,8 @@
20
20
  ![PyPI - Wheel](https://img.shields.io/pypi/wheel/github-agent)
21
21
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/github-agent)
22
22
 
23
- *Version: 2.4.9*
24
-
25
- > **Documentation** — Installation, deployment, and usage across the MCP, API, and
23
+ > **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
24
+ > and A2A agent interfaces are maintained in the
26
25
  > [official documentation](https://knuckles-team.github.io/github-agent/).
27
26
 
28
27
  ---
@@ -199,7 +198,7 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
199
198
 
200
199
  > **Install the connector-focused `[mcp]` extra.** Examples use `github-agent[mcp]` to add
201
200
  > FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
202
- > still carries `epistemic-graph[full]`. The `[agent-runtime]` extra additionally
201
+ > still carries `medulla[full]`. The `[agent-runtime]` extra additionally
203
202
  > enables model orchestration.
204
203
 
205
204
  #### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
@@ -223,7 +222,6 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
223
222
  "COMMITTOOL": "True",
224
223
  "CONTENTTOOL": "True",
225
224
  "DEPENDABOTTOOL": "True",
226
- "GITHUB_ALLOW_DESTRUCTIVE": "False",
227
225
  "GITHUB_HTTP_CONNECT_TIMEOUT": "10",
228
226
  "GITHUB_HTTP_READ_TIMEOUT": "30",
229
227
  "GITHUB_TOKEN": "your_github_token_here",
@@ -274,7 +272,6 @@ own runtime secret boundary.
274
272
  "COMMITTOOL": "True",
275
273
  "CONTENTTOOL": "True",
276
274
  "DEPENDABOTTOOL": "True",
277
- "GITHUB_ALLOW_DESTRUCTIVE": "False",
278
275
  "GITHUB_HTTP_CONNECT_TIMEOUT": "10",
279
276
  "GITHUB_HTTP_READ_TIMEOUT": "30",
280
277
  "GITHUB_TOKEN": "your_github_token_here",
@@ -324,7 +321,6 @@ docker run -i --rm \
324
321
  -e COMMITTOOL=True \
325
322
  -e CONTENTTOOL=True \
326
323
  -e DEPENDABOTTOOL=True \
327
- -e GITHUB_ALLOW_DESTRUCTIVE=False \
328
324
  -e GITHUB_HTTP_CONNECT_TIMEOUT=10 \
329
325
  -e GITHUB_HTTP_READ_TIMEOUT=30 \
330
326
  -e GITHUB_TOKEN=your_github_token_here \
@@ -365,6 +361,112 @@ the detailed transport contract.
365
361
 
366
362
  ---
367
363
 
364
+ ## Agent
365
+
366
+ This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts smoothly with the **Agent Web UI (AG-UI)** and Terminal interface.
367
+
368
+ ### Running the Agent CLI
369
+ To start the interactive command-line agent:
370
+
371
+ ```bash
372
+ # Set credentials
373
+ export GITHUB_URL="your_value"
374
+ # Configure TLS_PROFILE or TLS_PROFILE_REF through AgentConfig for private PKI.
375
+ export DEBUG="your_value"
376
+ export PYTHONUNBUFFERED="your_value"
377
+ export GITHUB_TOKEN="your_value"
378
+
379
+ # Run the agent server
380
+ github-agent --provider openai --model-id gpt-4o
381
+ ```
382
+
383
+ ### Docker Compose Orchestration
384
+
385
+ ```yaml
386
+ version: '3.8'
387
+
388
+ services:
389
+ github-agent-mcp:
390
+ container_name: github-agent-mcp
391
+ hostname: github-agent-mcp
392
+ restart: always
393
+ env_file:
394
+ - ../.env
395
+ environment:
396
+ - PYTHONUNBUFFERED=1
397
+ - HOST=0.0.0.0
398
+ - PORT=8000
399
+ - TRANSPORT=streamable-http
400
+ ports:
401
+ - "8000:8000"
402
+ healthcheck:
403
+ test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
404
+ interval: 30s
405
+ timeout: 10s
406
+ retries: 3
407
+ start_period: 10s
408
+ logging:
409
+ driver: json-file
410
+ options:
411
+ max-size: "10m"
412
+ max-file: "3"
413
+
414
+ image: example/github-agent@sha256:<digest>
415
+ container_name: github-agent-agent
416
+ hostname: github-agent-agent
417
+ restart: always
418
+ depends_on:
419
+ - github-agent-mcp
420
+ env_file:
421
+ - ../.env
422
+ command: [ "github-agent" ]
423
+ environment:
424
+ - PYTHONUNBUFFERED=1
425
+ - HOST=0.0.0.0
426
+ - PORT=9016
427
+ - MCP_URL=http://github-agent-mcp:8000/mcp
428
+ - PROVIDER=${PROVIDER:-openai}
429
+ - MODEL_ID=${MODEL_ID:-gpt-4o}
430
+ - ENABLE_WEB_UI=True
431
+ - ENABLE_OTEL=True
432
+ ports:
433
+ - "9016:9016"
434
+ healthcheck:
435
+ test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9016/health')"]
436
+ interval: 30s
437
+ timeout: 10s
438
+ retries: 3
439
+ start_period: 10s
440
+ logging:
441
+ driver: json-file
442
+ options:
443
+ max-size: "10m"
444
+ max-file: "3"
445
+
446
+ ```
447
+
448
+ Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/deployment.md](docs/deployment.md).
449
+
450
+ ---
451
+
452
+ ## Security & Governance
453
+
454
+ Built directly upon the enterprise-ready [`scion-sdk`](https://github.com/Knuckles-Team/scion-sdk) core, standard security parameters are fully supported:
455
+
456
+ ### Access Control & Policy Enforcement
457
+ - **Eunomia Policies:** Fine-grained, policy-driven tool authorization. Supports `none`, local `embedded` (`mcp_policies.json`), or centralized `remote` modes.
458
+ - **OIDC Token Delegation:** Compliant with RFC 8693 token exchange for flowing authenticating user credentials from Web UI / ACP → Agent → MCP.
459
+ - **Scoped Credentials:** Execution context runs restricted to the specific caller identity.
460
+
461
+ ### Runtime Security Grid
462
+ | Feature | Feature | Enablement |
463
+ |---------|---------------|------------|
464
+ | **Tool Guard** | Sensitivity inspection with human-in-the-loop validation | Enabled by default |
465
+ | **Prompt Injection Defense** | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |
466
+ | **Context Safety Guard** | Stuck-loop detectors and contextual overflow preemptive alerts | Enabled by default |
467
+
468
+ ---
469
+
368
470
  ## Environment Variables
369
471
 
370
472
  <!-- ENV-VARS-TABLE:START -->
@@ -388,7 +490,6 @@ the detailed transport contract.
388
490
  | `TLS_PROFILE` | `private-ca` | AgentConfig named transport profile |
389
491
  | `TLS_PROFILE_REF` | `secret://transport/provider` | Direct runtime profile reference |
390
492
  | `TLS_PROFILES_REF` | `secret://transport/catalog` | Named runtime profile catalog |
391
- | `GITHUB_ALLOW_DESTRUCTIVE` | `False` | Allow destructive (delete/force) operations |
392
493
  | `GITHUB_HTTP_CONNECT_TIMEOUT` | `10` | HTTP client timeouts (seconds) |
393
494
  | `GITHUB_HTTP_READ_TIMEOUT` | `30` | |
394
495
  | `DEBUG` | `False` | |
@@ -478,110 +579,6 @@ The tool surface is the typed per-operation tools; there are no per-domain toggl
478
579
 
479
580
  See [`.env.example`](.env.example) for a copy-paste starting point.
480
581
 
481
- ## Agent
482
-
483
- This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts smoothly with the **Agent Web UI (AG-UI)** and Terminal interface.
484
-
485
- ### Running the Agent CLI
486
- To start the interactive command-line agent:
487
-
488
- ```bash
489
- # Set credentials
490
- export GITHUB_URL="your_value"
491
- # Configure TLS_PROFILE or TLS_PROFILE_REF through AgentConfig for private PKI.
492
- export DEBUG="your_value"
493
- export PYTHONUNBUFFERED="your_value"
494
- export GITHUB_TOKEN="your_value"
495
-
496
- # Run the agent server
497
- github-agent --provider openai --model-id gpt-4o
498
- ```
499
-
500
- ### Docker Compose Orchestration
501
-
502
- ```yaml
503
- version: '3.8'
504
-
505
- services:
506
- github-agent-mcp:
507
- container_name: github-agent-mcp
508
- hostname: github-agent-mcp
509
- restart: always
510
- env_file:
511
- - ../.env
512
- environment:
513
- - PYTHONUNBUFFERED=1
514
- - HOST=0.0.0.0
515
- - PORT=8000
516
- - TRANSPORT=streamable-http
517
- ports:
518
- - "8000:8000"
519
- healthcheck:
520
- test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
521
- interval: 30s
522
- timeout: 10s
523
- retries: 3
524
- start_period: 10s
525
- logging:
526
- driver: json-file
527
- options:
528
- max-size: "10m"
529
- max-file: "3"
530
-
531
- image: example/github-agent@sha256:<digest>
532
- container_name: github-agent-agent
533
- hostname: github-agent-agent
534
- restart: always
535
- depends_on:
536
- - github-agent-mcp
537
- env_file:
538
- - ../.env
539
- command: [ "github-agent" ]
540
- environment:
541
- - PYTHONUNBUFFERED=1
542
- - HOST=0.0.0.0
543
- - PORT=9016
544
- - MCP_URL=http://github-agent-mcp:8000/mcp
545
- - PROVIDER=${PROVIDER:-openai}
546
- - MODEL_ID=${MODEL_ID:-gpt-4o}
547
- - ENABLE_WEB_UI=True
548
- - ENABLE_OTEL=True
549
- ports:
550
- - "9016:9016"
551
- healthcheck:
552
- test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9016/health')"]
553
- interval: 30s
554
- timeout: 10s
555
- retries: 3
556
- start_period: 10s
557
- logging:
558
- driver: json-file
559
- options:
560
- max-size: "10m"
561
- max-file: "3"
562
-
563
- ```
564
-
565
- Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/deployment.md](docs/deployment.md).
566
-
567
- ---
568
-
569
- ## Security & Governance
570
-
571
- Built directly upon the enterprise-ready [`scion-sdk`](https://github.com/Knuckles-Team/scion-sdk) core, standard security parameters are fully supported:
572
-
573
- ### Access Control & Policy Enforcement
574
- - **Eunomia Policies:** Fine-grained, policy-driven tool authorization. Supports `none`, local `embedded` (`mcp_policies.json`), or centralized `remote` modes.
575
- - **OIDC Token Delegation:** Compliant with RFC 8693 token exchange for flowing authenticating user credentials from Web UI / ACP → Agent → MCP.
576
- - **Scoped Credentials:** Execution context runs restricted to the specific caller identity.
577
-
578
- ### Runtime Security Grid
579
- | Feature | Feature | Enablement |
580
- |---------|---------------|------------|
581
- | **Tool Guard** | Sensitivity inspection with human-in-the-loop validation | Enabled by default |
582
- | **Prompt Injection Defense** | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |
583
- | **Context Safety Guard** | Stuck-loop detectors and contextual overflow preemptive alerts | Enabled by default |
584
-
585
582
  ---
586
583
 
587
584
  ## Installation
@@ -590,7 +587,7 @@ Pick the extra that matches what the operator want to run:
590
587
 
591
588
  | Extra | Installs | Use when |
592
589
  |-------|----------|----------|
593
- | `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `epistemic-graph[full]`) | The operator only run the **MCP server** (smallest install / image) |
590
+ | `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `medulla[full]`) | The operator only run the **MCP server** (smallest install / image) |
594
591
  | `github-agent[all]` | Everything (`mcp` + `agent` + `logfire`) | Development / both surfaces |
595
592
 
596
593
  ```bash
@@ -615,14 +612,14 @@ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
615
612
 
616
613
  agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
617
614
 
618
- ### Knowledge-graph database (`epistemic-graph`)
615
+ ### Knowledge-graph database (`medulla`)
619
616
 
620
- Scion SDK core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
617
+ Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
621
618
  deployments can use the bundled engine. For production or shared state, run
622
- **epistemic-graph as a dedicated database service** and configure the runtime to use it.
619
+ **medulla as a dedicated database service** and configure the runtime to use it.
623
620
  Deployment recipes (single-node + Raft HA), connection configuration, and architecture
624
621
  diagrams are documented in the
625
- [epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
622
+ [medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
626
623
 
627
624
  ---
628
625
 
@@ -659,8 +656,6 @@ Contributions are welcome! Please ensure code quality by running local checks be
659
656
  - Validate type-safety with `mypy .`
660
657
  - Run test suites using `pytest`
661
658
 
662
-
663
-
664
659
  <!-- GOVERNED-CAPABILITY:START -->
665
660
  ## Governed capability contract
666
661
 
@@ -3,13 +3,21 @@ from scion_sdk.connector_identity import connector_version
3
3
 
4
4
  from github_agent.api_client import Api
5
5
  from github_agent.auth import get_client
6
- from github_agent.mcp_server import TOOL_REGISTRY
6
+ from github_agent.mcp_server import OWNER_APPROVAL_OPERATIONS, TOOL_REGISTRY
7
7
 
8
8
  __version__ = connector_version("github_agent")
9
9
 
10
10
  connector = Connector(
11
- api=Api,
12
- get_client=get_client,
11
+ verbose_targets=(
12
+ {
13
+ "client_cls": Api,
14
+ "get_client": get_client,
15
+ "manifest": [
16
+ {"method": method, "owner_approval_required": True}
17
+ for method in OWNER_APPROVAL_OPERATIONS
18
+ ],
19
+ },
20
+ ),
13
21
  tool_registry=TOOL_REGISTRY,
14
22
  instructions="Github MCP Server - Manage your repositories, issues, and pull requests.",
15
23
  )
@@ -2,6 +2,7 @@
2
2
  from typing import Any
3
3
 
4
4
  from scion_sdk.exceptions import require_auth
5
+ from scion_sdk.mcp.destructive import destructive_operation
5
6
 
6
7
  from github_agent.api.api_client_base import BaseApiClient
7
8
  from github_agent.github_response_models import Response
@@ -59,6 +60,7 @@ class Api(BaseApiClient):
59
60
  response.raise_for_status()
60
61
  return Response(response=response, data=response.json())
61
62
 
63
+ @destructive_operation
62
64
  @require_auth
63
65
  def update_dependabot_alert(
64
66
  self,