github-agent 2.4.15__tar.gz → 2.6.0__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.
- {github_agent-2.4.15 → github_agent-2.6.0}/PKG-INFO +8 -12
- {github_agent-2.4.15 → github_agent-2.6.0}/README.md +6 -10
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_dependabot.py +2 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_orgs.py +4 -4
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_pages.py +2 -2
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_pulls.py +2 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/auth.py +0 -10
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/kg_ingest.py +3 -3
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/mcp_server.py +16 -3
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/ontology/__init__.py +1 -1
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/ontology/certification.json +3 -3
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/ontology/github.ttl +31 -28
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/ontology/shapes/connector.shacl.ttl +2 -2
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-agent-development/SKILL.md +1 -2
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent.egg-info/PKG-INFO +8 -12
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent.egg-info/SOURCES.txt +2 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent.egg-info/requires.txt +1 -1
- {github_agent-2.4.15 → github_agent-2.6.0}/pyproject.toml +2 -2
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_cq_paths.py +2 -2
- github_agent-2.6.0/tests/test_destructive_declaration.py +86 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_kg_ingest.py +1 -1
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_ontology_parent_link.py +17 -12
- github_agent-2.6.0/tests/test_scion_sdk_0_10_imports.py +59 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/LICENSE +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/__init__.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/__main__.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/__init__.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_base.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_branches.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_comments.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_commits.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_contents.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_issues.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_releases.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_repos.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_search.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api/api_client_workflows.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/api_client.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/connector_contracts.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/connector_sources.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/connectors/__init__.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/github_gql.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/github_http.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/github_input_models.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/github_response_models.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/mcp/__init__.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/mcp_config.json +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/ontology/fixtures/records.json +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/ontology/mappings/source.yaml +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/ontology/migrations/manifest.json +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/prompts/__init__.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/prompts/github-mcp-operator.json +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/prompts/github-mcp-release-manager.json +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/prompts/github-mcp-repository-administrator.json +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/prompts/github-mcp-triage-lead.json +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/__init__.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-actions-ci-review/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-agent-operations/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-backlog-planner/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-backlog-planner/references/addressed-heuristics.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-backlog-planner/scripts/build_plan.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-ci-failure-sweep/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-ci-failure-sweep/scripts/summarize_runs.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-dependabot-review/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-issue-tracking/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-org-remediation-loop/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-org-remediation-loop/scripts/classify_fix_risk.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-pr-review-sweep/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-pr-review-sweep/scripts/summarize_prs.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-project-provisioner/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-project-provisioner/scripts/enable_pages.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-pull-request-create/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-pull-request-review/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-repository-management/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-tools/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-tools/code-reviewer.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-tools/scripts/fetch_comments.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-tools/scripts/inspect_pr_checks.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-triage-resolver/SKILL.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-triage-resolver/references/resolution-rules.md +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-triage-resolver/scripts/classify_safe.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-triage-resolver/scripts/gh_write.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent.egg-info/dependency_links.txt +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent.egg-info/entry_points.txt +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/github_agent.egg-info/top_level.txt +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/setup.cfg +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/conftest.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_api_client_endpoints.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_api_validation.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_auth_client_edge_cases.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_default_content_surfaces.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_fleet_name.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_github_agent_api_brute_force_coverage.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_github_agent_brute_force_coverage.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_github_gql.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_github_http.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_ingest_sources.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_init_dynamics.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_model_fields.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_pages.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_skill_backlog_build_plan.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_skill_ci_failure_sweep_summarize_runs.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_skill_github_tools_fetch_comments.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_skill_github_tools_inspect_pr_checks.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_skill_org_remediation_classify_fix_risk.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_skill_pr_review_sweep_summarize_prs.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_skill_triage_resolver_classify_safe.py +0 -0
- {github_agent-2.4.15 → github_agent-2.6.0}/tests/test_startup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: github-agent
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.0
|
|
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]
|
|
16
|
+
Requires-Dist: scion-sdk[graphql,mcp]<0.12,>=0.11.0
|
|
17
17
|
Provides-Extra: mcp
|
|
18
18
|
Provides-Extra: all
|
|
19
19
|
Provides-Extra: test
|
|
@@ -223,7 +223,7 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
|
|
|
223
223
|
|
|
224
224
|
> **Install the connector-focused `[mcp]` extra.** Examples use `github-agent[mcp]` to add
|
|
225
225
|
> FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
|
|
226
|
-
> still carries `
|
|
226
|
+
> still carries `medulla[full]`. The `[agent-runtime]` extra additionally
|
|
227
227
|
> enables model orchestration.
|
|
228
228
|
|
|
229
229
|
#### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
|
|
@@ -247,7 +247,6 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
|
|
|
247
247
|
"COMMITTOOL": "True",
|
|
248
248
|
"CONTENTTOOL": "True",
|
|
249
249
|
"DEPENDABOTTOOL": "True",
|
|
250
|
-
"GITHUB_ALLOW_DESTRUCTIVE": "False",
|
|
251
250
|
"GITHUB_HTTP_CONNECT_TIMEOUT": "10",
|
|
252
251
|
"GITHUB_HTTP_READ_TIMEOUT": "30",
|
|
253
252
|
"GITHUB_TOKEN": "your_github_token_here",
|
|
@@ -298,7 +297,6 @@ own runtime secret boundary.
|
|
|
298
297
|
"COMMITTOOL": "True",
|
|
299
298
|
"CONTENTTOOL": "True",
|
|
300
299
|
"DEPENDABOTTOOL": "True",
|
|
301
|
-
"GITHUB_ALLOW_DESTRUCTIVE": "False",
|
|
302
300
|
"GITHUB_HTTP_CONNECT_TIMEOUT": "10",
|
|
303
301
|
"GITHUB_HTTP_READ_TIMEOUT": "30",
|
|
304
302
|
"GITHUB_TOKEN": "your_github_token_here",
|
|
@@ -348,7 +346,6 @@ docker run -i --rm \
|
|
|
348
346
|
-e COMMITTOOL=True \
|
|
349
347
|
-e CONTENTTOOL=True \
|
|
350
348
|
-e DEPENDABOTTOOL=True \
|
|
351
|
-
-e GITHUB_ALLOW_DESTRUCTIVE=False \
|
|
352
349
|
-e GITHUB_HTTP_CONNECT_TIMEOUT=10 \
|
|
353
350
|
-e GITHUB_HTTP_READ_TIMEOUT=30 \
|
|
354
351
|
-e GITHUB_TOKEN=your_github_token_here \
|
|
@@ -412,7 +409,6 @@ the detailed transport contract.
|
|
|
412
409
|
| `TLS_PROFILE` | `private-ca` | AgentConfig named transport profile |
|
|
413
410
|
| `TLS_PROFILE_REF` | `secret://transport/provider` | Direct runtime profile reference |
|
|
414
411
|
| `TLS_PROFILES_REF` | `secret://transport/catalog` | Named runtime profile catalog |
|
|
415
|
-
| `GITHUB_ALLOW_DESTRUCTIVE` | `False` | Allow destructive (delete/force) operations |
|
|
416
412
|
| `GITHUB_HTTP_CONNECT_TIMEOUT` | `10` | HTTP client timeouts (seconds) |
|
|
417
413
|
| `GITHUB_HTTP_READ_TIMEOUT` | `30` | |
|
|
418
414
|
| `DEBUG` | `False` | |
|
|
@@ -614,7 +610,7 @@ Pick the extra that matches what the operator want to run:
|
|
|
614
610
|
|
|
615
611
|
| Extra | Installs | Use when |
|
|
616
612
|
|-------|----------|----------|
|
|
617
|
-
| `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `
|
|
613
|
+
| `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `medulla[full]`) | The operator only run the **MCP server** (smallest install / image) |
|
|
618
614
|
| `github-agent[all]` | Everything (`mcp` + `agent` + `logfire`) | Development / both surfaces |
|
|
619
615
|
|
|
620
616
|
```bash
|
|
@@ -639,14 +635,14 @@ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
|
|
|
639
635
|
|
|
640
636
|
agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
|
|
641
637
|
|
|
642
|
-
### Knowledge-graph database (`
|
|
638
|
+
### Knowledge-graph database (`medulla`)
|
|
643
639
|
|
|
644
|
-
Scion SDK core dependency (`
|
|
640
|
+
Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
|
|
645
641
|
deployments can use the bundled engine. For production or shared state, run
|
|
646
|
-
**
|
|
642
|
+
**medulla as a dedicated database service** and configure the runtime to use it.
|
|
647
643
|
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
|
|
648
644
|
diagrams are documented in the
|
|
649
|
-
[
|
|
645
|
+
[medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
|
|
650
646
|
|
|
651
647
|
---
|
|
652
648
|
|
|
@@ -199,7 +199,7 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
|
|
|
199
199
|
|
|
200
200
|
> **Install the connector-focused `[mcp]` extra.** Examples use `github-agent[mcp]` to add
|
|
201
201
|
> FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
|
|
202
|
-
> still carries `
|
|
202
|
+
> still carries `medulla[full]`. The `[agent-runtime]` extra additionally
|
|
203
203
|
> enables model orchestration.
|
|
204
204
|
|
|
205
205
|
#### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
|
|
@@ -223,7 +223,6 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
|
|
|
223
223
|
"COMMITTOOL": "True",
|
|
224
224
|
"CONTENTTOOL": "True",
|
|
225
225
|
"DEPENDABOTTOOL": "True",
|
|
226
|
-
"GITHUB_ALLOW_DESTRUCTIVE": "False",
|
|
227
226
|
"GITHUB_HTTP_CONNECT_TIMEOUT": "10",
|
|
228
227
|
"GITHUB_HTTP_READ_TIMEOUT": "30",
|
|
229
228
|
"GITHUB_TOKEN": "your_github_token_here",
|
|
@@ -274,7 +273,6 @@ own runtime secret boundary.
|
|
|
274
273
|
"COMMITTOOL": "True",
|
|
275
274
|
"CONTENTTOOL": "True",
|
|
276
275
|
"DEPENDABOTTOOL": "True",
|
|
277
|
-
"GITHUB_ALLOW_DESTRUCTIVE": "False",
|
|
278
276
|
"GITHUB_HTTP_CONNECT_TIMEOUT": "10",
|
|
279
277
|
"GITHUB_HTTP_READ_TIMEOUT": "30",
|
|
280
278
|
"GITHUB_TOKEN": "your_github_token_here",
|
|
@@ -324,7 +322,6 @@ docker run -i --rm \
|
|
|
324
322
|
-e COMMITTOOL=True \
|
|
325
323
|
-e CONTENTTOOL=True \
|
|
326
324
|
-e DEPENDABOTTOOL=True \
|
|
327
|
-
-e GITHUB_ALLOW_DESTRUCTIVE=False \
|
|
328
325
|
-e GITHUB_HTTP_CONNECT_TIMEOUT=10 \
|
|
329
326
|
-e GITHUB_HTTP_READ_TIMEOUT=30 \
|
|
330
327
|
-e GITHUB_TOKEN=your_github_token_here \
|
|
@@ -388,7 +385,6 @@ the detailed transport contract.
|
|
|
388
385
|
| `TLS_PROFILE` | `private-ca` | AgentConfig named transport profile |
|
|
389
386
|
| `TLS_PROFILE_REF` | `secret://transport/provider` | Direct runtime profile reference |
|
|
390
387
|
| `TLS_PROFILES_REF` | `secret://transport/catalog` | Named runtime profile catalog |
|
|
391
|
-
| `GITHUB_ALLOW_DESTRUCTIVE` | `False` | Allow destructive (delete/force) operations |
|
|
392
388
|
| `GITHUB_HTTP_CONNECT_TIMEOUT` | `10` | HTTP client timeouts (seconds) |
|
|
393
389
|
| `GITHUB_HTTP_READ_TIMEOUT` | `30` | |
|
|
394
390
|
| `DEBUG` | `False` | |
|
|
@@ -590,7 +586,7 @@ Pick the extra that matches what the operator want to run:
|
|
|
590
586
|
|
|
591
587
|
| Extra | Installs | Use when |
|
|
592
588
|
|-------|----------|----------|
|
|
593
|
-
| `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `
|
|
589
|
+
| `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `medulla[full]`) | The operator only run the **MCP server** (smallest install / image) |
|
|
594
590
|
| `github-agent[all]` | Everything (`mcp` + `agent` + `logfire`) | Development / both surfaces |
|
|
595
591
|
|
|
596
592
|
```bash
|
|
@@ -615,14 +611,14 @@ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
|
|
|
615
611
|
|
|
616
612
|
agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
|
|
617
613
|
|
|
618
|
-
### Knowledge-graph database (`
|
|
614
|
+
### Knowledge-graph database (`medulla`)
|
|
619
615
|
|
|
620
|
-
Scion SDK core dependency (`
|
|
616
|
+
Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
|
|
621
617
|
deployments can use the bundled engine. For production or shared state, run
|
|
622
|
-
**
|
|
618
|
+
**medulla as a dedicated database service** and configure the runtime to use it.
|
|
623
619
|
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
|
|
624
620
|
diagrams are documented in the
|
|
625
|
-
[
|
|
621
|
+
[medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
|
|
626
622
|
|
|
627
623
|
---
|
|
628
624
|
|
|
@@ -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,
|
|
@@ -111,8 +111,8 @@ class Api(BaseApiClient):
|
|
|
111
111
|
"""Schedule an organization for deletion. IRREVERSIBLE.
|
|
112
112
|
|
|
113
113
|
GitHub responds 202 Accepted and deletes the organization, all of its
|
|
114
|
-
repositories, and all of its data asynchronously. The
|
|
115
|
-
|
|
114
|
+
repositories, and all of its data asynchronously. The SDK asks
|
|
115
|
+
the caller to confirm this action.
|
|
116
116
|
|
|
117
117
|
DELETE /orgs/{org}
|
|
118
118
|
https://docs.github.com/en/rest/orgs/orgs#delete-an-organization
|
|
@@ -240,8 +240,8 @@ class Api(BaseApiClient):
|
|
|
240
240
|
def remove_organization_member(self, org: str, username: str) -> Response:
|
|
241
241
|
"""Remove a user from an organization (repositories access included).
|
|
242
242
|
|
|
243
|
-
Destructive: the
|
|
244
|
-
|
|
243
|
+
Destructive: the SDK asks the caller to confirm this
|
|
244
|
+
action. GitHub responds 204.
|
|
245
245
|
|
|
246
246
|
DELETE /orgs/{org}/members/{username}
|
|
247
247
|
https://docs.github.com/en/rest/orgs/members#remove-an-organization-member
|
|
@@ -150,8 +150,8 @@ class Api(BaseApiClient):
|
|
|
150
150
|
def delete_pages(self, owner: str, repo: str) -> Response:
|
|
151
151
|
"""Disable GitHub Pages for a repository and delete the site.
|
|
152
152
|
|
|
153
|
-
Destructive: the
|
|
154
|
-
|
|
153
|
+
Destructive: the SDK asks the caller to confirm this
|
|
154
|
+
action. GitHub responds 204.
|
|
155
155
|
|
|
156
156
|
DELETE /repos/{owner}/{repo}/pages
|
|
157
157
|
https://docs.github.com/en/rest/pages/pages#delete-a-apiname-pages-site
|
|
@@ -5,6 +5,7 @@ from scion_sdk.exceptions import (
|
|
|
5
5
|
ParameterError,
|
|
6
6
|
require_auth,
|
|
7
7
|
)
|
|
8
|
+
from scion_sdk.mcp.destructive import destructive_operation
|
|
8
9
|
|
|
9
10
|
from github_agent.api.api_client_base import BaseApiClient
|
|
10
11
|
from github_agent.github_input_models import (
|
|
@@ -107,6 +108,7 @@ class Api(BaseApiClient):
|
|
|
107
108
|
response.raise_for_status()
|
|
108
109
|
return Response(response=response, data=response.json())
|
|
109
110
|
|
|
111
|
+
@destructive_operation
|
|
110
112
|
@require_auth
|
|
111
113
|
def merge_pull_request(
|
|
112
114
|
self,
|
|
@@ -21,16 +21,6 @@ from github_agent.api_client import Api
|
|
|
21
21
|
logger = get_logger(__name__)
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
def allow_destructive_default() -> bool:
|
|
25
|
-
"""Fleet-wide default for the destructive-action gate.
|
|
26
|
-
|
|
27
|
-
Destructive MCP actions (e.g. organization delete, member removal) are
|
|
28
|
-
blocked unless the caller passes allow_destructive=true or the
|
|
29
|
-
GITHUB_ALLOW_DESTRUCTIVE environment variable is set truthy.
|
|
30
|
-
"""
|
|
31
|
-
return setting("GITHUB_ALLOW_DESTRUCTIVE", False)
|
|
32
|
-
|
|
33
|
-
|
|
34
24
|
def _exchange_delegated_token(settings: DelegationSettings) -> str:
|
|
35
25
|
"""Exchange the caller's verified MCP token for a downstream GitHub token."""
|
|
36
26
|
logger.info(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"""Native
|
|
1
|
+
"""Native medulla ingestion for GitHub records (typed graph nodes + documents).
|
|
2
2
|
|
|
3
3
|
CONCEPT:AU-KG.ingest.enterprise-source-extractor. The github-agent connector natively
|
|
4
|
-
pushes its data into the ONE
|
|
4
|
+
pushes its data into the ONE medulla knowledge graph as **typed OWL nodes**
|
|
5
5
|
(``:Repository``, ``:PullRequest``, ``:Issue``, ``:Release``, ``:Organization``,
|
|
6
6
|
``:Person``, ``:PipelineRun``, ``:CheckRun``) plus links, and release notes as
|
|
7
7
|
**:Document** nodes for semantic search, through the ``scion_sdk.ingest``
|
|
@@ -65,7 +65,7 @@ async def ingest_entities(
|
|
|
65
65
|
*,
|
|
66
66
|
ingest: KnowledgeIngest | None = None,
|
|
67
67
|
) -> dict[str, int] | None:
|
|
68
|
-
"""Write typed OWL nodes (+ edges) into
|
|
68
|
+
"""Write typed OWL nodes (+ edges) into medulla. Best-effort, never raises.
|
|
69
69
|
|
|
70
70
|
``entities``: ``[{"id":..., "node_type":<owl:Class>, ...props}]``.
|
|
71
71
|
``relationships``: ``[{"source":id, "target":id, "relationship":<link>}]``.
|
|
@@ -29,6 +29,7 @@ from scion_sdk.config import load_config
|
|
|
29
29
|
from scion_sdk.connector_identity import connector_version
|
|
30
30
|
from scion_sdk.mcp.concurrency import run_blocking
|
|
31
31
|
from scion_sdk.mcp.content import ConnectorContent
|
|
32
|
+
from scion_sdk.mcp.destructive import guard_destructive
|
|
32
33
|
from scion_sdk.mcp.server import create_mcp_server
|
|
33
34
|
from scion_sdk.mcp.tool_surface import register_tool_surface
|
|
34
35
|
|
|
@@ -114,7 +115,7 @@ def register_ingest_tools(mcp: FastMCP):
|
|
|
114
115
|
default=None, description="MCP context for progress reporting"
|
|
115
116
|
),
|
|
116
117
|
) -> Any:
|
|
117
|
-
"""Natively ingest GitHub repositories into
|
|
118
|
+
"""Natively ingest GitHub repositories into medulla as typed :Repository nodes.
|
|
118
119
|
|
|
119
120
|
Lists the authenticated user's repositories via the GitHub API and pushes them
|
|
120
121
|
(with their owner :Organization/:Person + :ownedByOrg links) into the knowledge
|
|
@@ -170,7 +171,7 @@ def register_ingest_tools(mcp: FastMCP):
|
|
|
170
171
|
default=None, description="MCP context for progress reporting"
|
|
171
172
|
),
|
|
172
173
|
) -> Any:
|
|
173
|
-
"""Natively ingest GitHub Actions workflow runs into
|
|
174
|
+
"""Natively ingest GitHub Actions workflow runs into medulla.
|
|
174
175
|
|
|
175
176
|
Lists recent workflow runs for a repository (+ each run's jobs, unless
|
|
176
177
|
``include_jobs=false``) via the GitHub API and pushes them as typed
|
|
@@ -218,7 +219,7 @@ def register_auto_merge_tools(mcp: FastMCP):
|
|
|
218
219
|
"""Register the GraphQL-only pull request auto-merge tools."""
|
|
219
220
|
|
|
220
221
|
@mcp.tool(
|
|
221
|
-
tags={"pulls"}, annotations={"readOnlyHint": False, "destructiveHint":
|
|
222
|
+
tags={"pulls"}, annotations={"readOnlyHint": False, "destructiveHint": True}
|
|
222
223
|
)
|
|
223
224
|
async def github_pulls_enable_auto_merge(
|
|
224
225
|
owner: str = Field(description="Repository owner."),
|
|
@@ -228,9 +229,21 @@ def register_auto_merge_tools(mcp: FastMCP):
|
|
|
228
229
|
default="MERGE", description="MERGE, SQUASH or REBASE."
|
|
229
230
|
),
|
|
230
231
|
client=Depends(get_client),
|
|
232
|
+
confirm: bool = Field(
|
|
233
|
+
default=False,
|
|
234
|
+
description="Confirm this destructive call when the client cannot be asked.",
|
|
235
|
+
),
|
|
231
236
|
ctx: Context | None = Field(default=None, description="MCP context"),
|
|
232
237
|
) -> Any:
|
|
233
238
|
"""Turn on auto-merge for a pull request: it merges once required checks pass."""
|
|
239
|
+
refused = await guard_destructive(
|
|
240
|
+
ctx,
|
|
241
|
+
"enable_auto_merge",
|
|
242
|
+
{"owner": owner, "repo": repo, "number": number},
|
|
243
|
+
confirm=confirm,
|
|
244
|
+
)
|
|
245
|
+
if refused is not None:
|
|
246
|
+
return refused
|
|
234
247
|
try:
|
|
235
248
|
gql_client = await run_blocking(get_graphql_client)
|
|
236
249
|
except Exception as e:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Github ontology contribution (CONCEPT:AU-KG.ontology.federation-provider-leg).
|
|
2
2
|
|
|
3
3
|
Data-only subpackage: it carries ``github.ttl`` (the ``owl:Ontology``
|
|
4
|
-
``
|
|
4
|
+
``https://knuckles-team.github.io/ontology/connector/github`` module — organizations, repositories, pull requests,
|
|
5
5
|
issues, releases, branches, commits, workflows and workflow runs with their review and
|
|
6
6
|
delivery relationships) which the scion-sdk hub federates in via
|
|
7
7
|
the ``scion_sdk.ontology_providers`` entry-point. It holds no business logic
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"api_version": "graphos.io/v1",
|
|
3
3
|
"artifacts": {
|
|
4
4
|
"github_agent/ontology/fixtures/records.json": "12f5b54b0ae98770f279f99e136788d063340042a9d6ff4bac0c22a886d2dc7b",
|
|
5
|
-
"github_agent/ontology/github.ttl": "
|
|
5
|
+
"github_agent/ontology/github.ttl": "5ee5e592487f56898e38b878ac928c262b7c40c05cb329df2d15783181932672",
|
|
6
6
|
"github_agent/ontology/mappings/source.yaml": "5142f75b88634aeac6850fe6de5b176958d63073daab2c573cf9c03daa46021c",
|
|
7
7
|
"github_agent/ontology/migrations/manifest.json": "adf16022502dd031dd303a52abae7a0677ece1135e1e05c21dba24c9ae51935c",
|
|
8
|
-
"github_agent/ontology/shapes/connector.shacl.ttl": "
|
|
8
|
+
"github_agent/ontology/shapes/connector.shacl.ttl": "0972b7e3b5f56fb0452f070800cd1f7ee790f6cf183f308f1cf69e5a0db716e0"
|
|
9
9
|
},
|
|
10
10
|
"checks": {
|
|
11
11
|
"declared_tool_schema": "passed",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"signer": "UNSIGNED-PREVIEW",
|
|
30
30
|
"signing_public_key": "",
|
|
31
31
|
"status": "source-validated",
|
|
32
|
-
"validated_at": "2026-11-
|
|
32
|
+
"validated_at": "2026-11-13T00:07:32Z"
|
|
33
33
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
2
2
|
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
|
3
3
|
@prefix dc: <http://purl.org/dc/terms/> .
|
|
4
|
-
@prefix : <
|
|
4
|
+
@prefix : <https://knuckles-team.github.io/ontology/connector/github#> .
|
|
5
|
+
@prefix core: <https://knuckles-team.github.io/ontology/core#> .
|
|
5
6
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
6
7
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
7
8
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
@@ -15,24 +16,26 @@
|
|
|
15
16
|
# Shared concepts owned by the epistemic-graph ontology and referenced here, never redeclared:
|
|
16
17
|
# Repository, PullRequest, Release, Branch, Commit, PipelineRun. Only the GitHub-specific subclasses and properties are declared in this pack.
|
|
17
18
|
|
|
18
|
-
:Organization a owl:Class
|
|
19
|
+
:Organization a owl:Class ;
|
|
20
|
+
rdfs:subClassOf core:Organization .
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
:Issue a owl:Class ;
|
|
22
|
-
rdfs:subClassOf :WorkItem ;
|
|
24
|
+
rdfs:subClassOf core:WorkItem ;
|
|
23
25
|
rdfs:label "Issue" ;
|
|
24
26
|
rdfs:comment "A tracked work item, bug, or discussion in a repository (github_get_issues)." .
|
|
25
27
|
|
|
26
|
-
:Workflow a owl:Class
|
|
28
|
+
:Workflow a owl:Class ;
|
|
29
|
+
rdfs:subClassOf core:Workflow .
|
|
27
30
|
|
|
28
31
|
|
|
29
32
|
:WorkflowRun a owl:Class ;
|
|
30
|
-
rdfs:subClassOf :PipelineRun ;
|
|
33
|
+
rdfs:subClassOf core:PipelineRun ;
|
|
31
34
|
rdfs:label "Workflow Run" ;
|
|
32
35
|
rdfs:comment "A single execution of a GitHub Actions workflow for a ref/commit (github_get_workflow_runs)." .
|
|
33
36
|
|
|
34
37
|
:CheckRun a owl:Class ;
|
|
35
|
-
rdfs:subClassOf :PipelineRun ;
|
|
38
|
+
rdfs:subClassOf core:PipelineRun ;
|
|
36
39
|
rdfs:label "Check Run" ;
|
|
37
40
|
rdfs:comment """A single job/check within a PipelineRun (github_get_workflow_run_jobs workflow-run job or
|
|
38
41
|
GitHub Checks-API check run). Shares its class name with the twin gitlab-api producer.""" .
|
|
@@ -42,34 +45,34 @@
|
|
|
42
45
|
:belongsToRepository a owl:ObjectProperty ;
|
|
43
46
|
rdfs:label "belongs to repository" ;
|
|
44
47
|
rdfs:comment "Links a PullRequest, Issue, Branch, Commit, Release, Workflow, or WorkflowRun to its Repository." ;
|
|
45
|
-
rdfs:range :Repository .
|
|
48
|
+
rdfs:range core:Repository .
|
|
46
49
|
|
|
47
50
|
:ownedByOrg a owl:ObjectProperty ;
|
|
48
51
|
rdfs:label "owned by organization" ;
|
|
49
52
|
rdfs:comment "Links a Repository to the Organization (or user) that owns it." ;
|
|
50
|
-
rdfs:domain :Repository ;
|
|
53
|
+
rdfs:domain core:Repository ;
|
|
51
54
|
rdfs:range :Organization .
|
|
52
55
|
|
|
53
56
|
:authoredBy a owl:ObjectProperty ;
|
|
54
57
|
rdfs:label "authored by" ;
|
|
55
58
|
rdfs:comment "Links a PullRequest, Issue, or Commit to the Person who created it." ;
|
|
56
|
-
rdfs:range :Person .
|
|
59
|
+
rdfs:range core:Person .
|
|
57
60
|
|
|
58
61
|
:assignedTo a owl:ObjectProperty ;
|
|
59
62
|
rdfs:label "assigned to" ;
|
|
60
63
|
rdfs:comment "Links an Issue or PullRequest to the Person responsible for it." ;
|
|
61
|
-
rdfs:range :Person .
|
|
64
|
+
rdfs:range core:Person .
|
|
62
65
|
|
|
63
66
|
:targetsBranch a owl:ObjectProperty ;
|
|
64
67
|
rdfs:label "targets branch" ;
|
|
65
68
|
rdfs:comment "Links a PullRequest to the base Branch it merges into." ;
|
|
66
|
-
rdfs:domain :PullRequest ;
|
|
67
|
-
rdfs:range :Branch .
|
|
69
|
+
rdfs:domain core:PullRequest ;
|
|
70
|
+
rdfs:range core:Branch .
|
|
68
71
|
|
|
69
72
|
:closesIssue a owl:ObjectProperty ;
|
|
70
73
|
rdfs:label "closes issue" ;
|
|
71
74
|
rdfs:comment "Links a PullRequest to an Issue it resolves." ;
|
|
72
|
-
rdfs:domain :PullRequest ;
|
|
75
|
+
rdfs:domain core:PullRequest ;
|
|
73
76
|
rdfs:range :Issue .
|
|
74
77
|
|
|
75
78
|
:hasWorkflowRun a owl:ObjectProperty ;
|
|
@@ -83,27 +86,27 @@
|
|
|
83
86
|
rdfs:comment """Links a PipelineRun to what it ran for — its Repository, the Commit it
|
|
84
87
|
built, and/or the PullRequest it validated. Same predicate name as the twin gitlab-api
|
|
85
88
|
producer (Pipeline ranFor Project/Commit/MergeRequest).""" ;
|
|
86
|
-
rdfs:domain :PipelineRun .
|
|
89
|
+
rdfs:domain core:PipelineRun .
|
|
87
90
|
|
|
88
91
|
:hasJob a owl:ObjectProperty ;
|
|
89
92
|
rdfs:label "has job" ;
|
|
90
93
|
rdfs:comment """Links a PipelineRun to a CheckRun (job/check) it contains. Same predicate
|
|
91
94
|
name as the twin gitlab-api producer (Pipeline hasJob Job).""" ;
|
|
92
|
-
rdfs:domain :PipelineRun ;
|
|
95
|
+
rdfs:domain core:PipelineRun ;
|
|
93
96
|
rdfs:range :CheckRun .
|
|
94
97
|
|
|
95
98
|
:documentsRelease a owl:ObjectProperty ;
|
|
96
99
|
rdfs:label "documents release" ;
|
|
97
100
|
rdfs:comment "Links a Release to the :Document carrying its release-notes body." ;
|
|
98
|
-
rdfs:domain :Release ;
|
|
99
|
-
rdfs:range :Document .
|
|
101
|
+
rdfs:domain core:Release ;
|
|
102
|
+
rdfs:range core:Document .
|
|
100
103
|
|
|
101
104
|
# --- fields (owl:DatatypeProperty) ---
|
|
102
105
|
|
|
103
106
|
:fullName a owl:DatatypeProperty ;
|
|
104
107
|
rdfs:label "full name" ;
|
|
105
108
|
rdfs:comment "Owner-qualified repository name (owner/repo)." ;
|
|
106
|
-
rdfs:domain :Repository ;
|
|
109
|
+
rdfs:domain core:Repository ;
|
|
107
110
|
rdfs:range xsd:string .
|
|
108
111
|
|
|
109
112
|
:htmlUrl a owl:DatatypeProperty ;
|
|
@@ -114,7 +117,7 @@
|
|
|
114
117
|
:state a owl:DatatypeProperty ;
|
|
115
118
|
rdfs:label "state" ;
|
|
116
119
|
rdfs:comment "Lifecycle state (open, closed, merged)." ;
|
|
117
|
-
rdfs:domain [ a owl:Class ; owl:unionOf ( :Issue :PullRequest ) ] ;
|
|
120
|
+
rdfs:domain [ a owl:Class ; owl:unionOf ( :Issue core:PullRequest ) ] ;
|
|
118
121
|
rdfs:range xsd:string .
|
|
119
122
|
|
|
120
123
|
:number a owl:DatatypeProperty ;
|
|
@@ -135,13 +138,13 @@
|
|
|
135
138
|
:defaultBranch a owl:DatatypeProperty ;
|
|
136
139
|
rdfs:label "default branch" ;
|
|
137
140
|
rdfs:comment "Name of a repository's default branch." ;
|
|
138
|
-
rdfs:domain :Repository ;
|
|
141
|
+
rdfs:domain core:Repository ;
|
|
139
142
|
rdfs:range xsd:string .
|
|
140
143
|
|
|
141
144
|
:isPrivate a owl:DatatypeProperty ;
|
|
142
145
|
rdfs:label "is private" ;
|
|
143
146
|
rdfs:comment "Whether a repository is private." ;
|
|
144
|
-
rdfs:domain :Repository ;
|
|
147
|
+
rdfs:domain core:Repository ;
|
|
145
148
|
rdfs:range xsd:boolean .
|
|
146
149
|
|
|
147
150
|
:isDraft a owl:DatatypeProperty ;
|
|
@@ -167,37 +170,37 @@
|
|
|
167
170
|
:headSha a owl:DatatypeProperty ;
|
|
168
171
|
rdfs:label "head sha" ;
|
|
169
172
|
rdfs:comment "Full git commit SHA a PipelineRun ran against." ;
|
|
170
|
-
rdfs:domain :PipelineRun ;
|
|
173
|
+
rdfs:domain core:PipelineRun ;
|
|
171
174
|
rdfs:range xsd:string .
|
|
172
175
|
|
|
173
176
|
:headBranch a owl:DatatypeProperty ;
|
|
174
177
|
rdfs:label "head branch" ;
|
|
175
178
|
rdfs:comment "Branch name a PipelineRun ran against." ;
|
|
176
|
-
rdfs:domain :PipelineRun ;
|
|
179
|
+
rdfs:domain core:PipelineRun ;
|
|
177
180
|
rdfs:range xsd:string .
|
|
178
181
|
|
|
179
182
|
:event a owl:DatatypeProperty ;
|
|
180
183
|
rdfs:label "event" ;
|
|
181
184
|
rdfs:comment "Triggering event of a PipelineRun (push, pull_request, schedule, workflow_dispatch)." ;
|
|
182
|
-
rdfs:domain :PipelineRun ;
|
|
185
|
+
rdfs:domain core:PipelineRun ;
|
|
183
186
|
rdfs:range xsd:string .
|
|
184
187
|
|
|
185
188
|
:runStartedAt a owl:DatatypeProperty ;
|
|
186
189
|
rdfs:label "run started at" ;
|
|
187
190
|
rdfs:comment "Timestamp a PipelineRun started executing." ;
|
|
188
|
-
rdfs:domain :PipelineRun ;
|
|
191
|
+
rdfs:domain core:PipelineRun ;
|
|
189
192
|
rdfs:range xsd:dateTime .
|
|
190
193
|
|
|
191
194
|
:runUpdatedAt a owl:DatatypeProperty ;
|
|
192
195
|
rdfs:label "run updated at" ;
|
|
193
196
|
rdfs:comment "Timestamp a PipelineRun was last updated." ;
|
|
194
|
-
rdfs:domain :PipelineRun ;
|
|
197
|
+
rdfs:domain core:PipelineRun ;
|
|
195
198
|
rdfs:range xsd:dateTime .
|
|
196
199
|
|
|
197
200
|
:durationSeconds a owl:DatatypeProperty ;
|
|
198
201
|
rdfs:label "duration seconds" ;
|
|
199
202
|
rdfs:comment "Wall-clock duration in seconds of a PipelineRun (runUpdatedAt - runStartedAt)." ;
|
|
200
|
-
rdfs:domain :PipelineRun ;
|
|
203
|
+
rdfs:domain core:PipelineRun ;
|
|
201
204
|
rdfs:range xsd:integer .
|
|
202
205
|
|
|
203
206
|
:startedAt a owl:DatatypeProperty ;
|
|
@@ -212,7 +215,7 @@
|
|
|
212
215
|
rdfs:domain :CheckRun ;
|
|
213
216
|
rdfs:range xsd:dateTime .
|
|
214
217
|
|
|
215
|
-
<
|
|
218
|
+
<https://knuckles-team.github.io/ontology/connector/github> a owl:Ontology ;
|
|
216
219
|
rdfs:label "GitHub Ontology" ;
|
|
217
220
|
rdfs:comment """GitHub source-control, code-review and CI/CD model — organizations,
|
|
218
221
|
repositories, pull requests, issues, releases, branches, commits, workflows and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@prefix : <
|
|
2
|
-
@prefix shape: <
|
|
1
|
+
@prefix : <https://knuckles-team.github.io/ontology/core#> .
|
|
2
|
+
@prefix shape: <https://knuckles-team.github.io/ontology/connector/github-shapes#> .
|
|
3
3
|
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
4
4
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
5
|
|
{github_agent-2.4.15 → github_agent-2.6.0}/github_agent/skills/github-agent-development/SKILL.md
RENAMED
|
@@ -65,8 +65,7 @@ with local copies or bypass a failing check.
|
|
|
65
65
|
- Credentials come from `GITHUB_TOKEN`; the endpoint is derived from `GITHUB_URL`
|
|
66
66
|
(`api.github.com`, or a GitHub Enterprise `/api/v3` host whose GraphQL endpoint
|
|
67
67
|
is `/api/graphql`). Mock all GitHub calls; never use a real token in a gate.
|
|
68
|
-
- Destructive operations
|
|
69
|
-
by default and test both states.
|
|
68
|
+
- Destructive operations are declared once with the SDK `destructive_operation` decorator; the SDK asks the caller to confirm (`confirm=true`), and `SCION_ALLOW_DESTRUCTIVE` is the one operator setting. Never add a connector-local knob.
|
|
70
69
|
- Prefer one aliased `github_graphql` query over many REST calls for cross-repo
|
|
71
70
|
reads; keep REST and GraphQL parity when adding a tool domain.
|
|
72
71
|
- Packaged skills under `github_agent/skills/` have their own helper tests
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: github-agent
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.0
|
|
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]
|
|
16
|
+
Requires-Dist: scion-sdk[graphql,mcp]<0.12,>=0.11.0
|
|
17
17
|
Provides-Extra: mcp
|
|
18
18
|
Provides-Extra: all
|
|
19
19
|
Provides-Extra: test
|
|
@@ -223,7 +223,7 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
|
|
|
223
223
|
|
|
224
224
|
> **Install the connector-focused `[mcp]` extra.** Examples use `github-agent[mcp]` to add
|
|
225
225
|
> FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
|
|
226
|
-
> still carries `
|
|
226
|
+
> still carries `medulla[full]`. The `[agent-runtime]` extra additionally
|
|
227
227
|
> enables model orchestration.
|
|
228
228
|
|
|
229
229
|
#### stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
|
|
@@ -247,7 +247,6 @@ When query strings or parameters are supplied, an LLM-free **Knowledge Graph res
|
|
|
247
247
|
"COMMITTOOL": "True",
|
|
248
248
|
"CONTENTTOOL": "True",
|
|
249
249
|
"DEPENDABOTTOOL": "True",
|
|
250
|
-
"GITHUB_ALLOW_DESTRUCTIVE": "False",
|
|
251
250
|
"GITHUB_HTTP_CONNECT_TIMEOUT": "10",
|
|
252
251
|
"GITHUB_HTTP_READ_TIMEOUT": "30",
|
|
253
252
|
"GITHUB_TOKEN": "your_github_token_here",
|
|
@@ -298,7 +297,6 @@ own runtime secret boundary.
|
|
|
298
297
|
"COMMITTOOL": "True",
|
|
299
298
|
"CONTENTTOOL": "True",
|
|
300
299
|
"DEPENDABOTTOOL": "True",
|
|
301
|
-
"GITHUB_ALLOW_DESTRUCTIVE": "False",
|
|
302
300
|
"GITHUB_HTTP_CONNECT_TIMEOUT": "10",
|
|
303
301
|
"GITHUB_HTTP_READ_TIMEOUT": "30",
|
|
304
302
|
"GITHUB_TOKEN": "your_github_token_here",
|
|
@@ -348,7 +346,6 @@ docker run -i --rm \
|
|
|
348
346
|
-e COMMITTOOL=True \
|
|
349
347
|
-e CONTENTTOOL=True \
|
|
350
348
|
-e DEPENDABOTTOOL=True \
|
|
351
|
-
-e GITHUB_ALLOW_DESTRUCTIVE=False \
|
|
352
349
|
-e GITHUB_HTTP_CONNECT_TIMEOUT=10 \
|
|
353
350
|
-e GITHUB_HTTP_READ_TIMEOUT=30 \
|
|
354
351
|
-e GITHUB_TOKEN=your_github_token_here \
|
|
@@ -412,7 +409,6 @@ the detailed transport contract.
|
|
|
412
409
|
| `TLS_PROFILE` | `private-ca` | AgentConfig named transport profile |
|
|
413
410
|
| `TLS_PROFILE_REF` | `secret://transport/provider` | Direct runtime profile reference |
|
|
414
411
|
| `TLS_PROFILES_REF` | `secret://transport/catalog` | Named runtime profile catalog |
|
|
415
|
-
| `GITHUB_ALLOW_DESTRUCTIVE` | `False` | Allow destructive (delete/force) operations |
|
|
416
412
|
| `GITHUB_HTTP_CONNECT_TIMEOUT` | `10` | HTTP client timeouts (seconds) |
|
|
417
413
|
| `GITHUB_HTTP_READ_TIMEOUT` | `30` | |
|
|
418
414
|
| `DEBUG` | `False` | |
|
|
@@ -614,7 +610,7 @@ Pick the extra that matches what the operator want to run:
|
|
|
614
610
|
|
|
615
611
|
| Extra | Installs | Use when |
|
|
616
612
|
|-------|----------|----------|
|
|
617
|
-
| `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `
|
|
613
|
+
| `github-agent[mcp]` | Connector-focused MCP server (`scion-sdk` — FastMCP/FastAPI + `medulla[full]`) | The operator only run the **MCP server** (smallest install / image) |
|
|
618
614
|
| `github-agent[all]` | Everything (`mcp` + `agent` + `logfire`) | Development / both surfaces |
|
|
619
615
|
|
|
620
616
|
```bash
|
|
@@ -639,14 +635,14 @@ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
|
|
|
639
635
|
|
|
640
636
|
agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
|
|
641
637
|
|
|
642
|
-
### Knowledge-graph database (`
|
|
638
|
+
### Knowledge-graph database (`medulla`)
|
|
643
639
|
|
|
644
|
-
Scion SDK core dependency (`
|
|
640
|
+
Scion SDK core dependency (`medulla[full]`). The `[mcp]` extra keeps
|
|
645
641
|
deployments can use the bundled engine. For production or shared state, run
|
|
646
|
-
**
|
|
642
|
+
**medulla as a dedicated database service** and configure the runtime to use it.
|
|
647
643
|
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
|
|
648
644
|
diagrams are documented in the
|
|
649
|
-
[
|
|
645
|
+
[medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
|
|
650
646
|
|
|
651
647
|
---
|
|
652
648
|
|