github-agent 2.4.9__py3-none-any.whl → 2.4.14__py3-none-any.whl
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/__init__.py +15 -1
- github_agent/api/api_client_base.py +5 -5
- github_agent/api/api_client_branches.py +2 -2
- github_agent/api/api_client_comments.py +1 -1
- github_agent/api/api_client_commits.py +2 -2
- github_agent/api/api_client_contents.py +2 -2
- github_agent/api/api_client_dependabot.py +1 -1
- github_agent/api/api_client_issues.py +2 -2
- github_agent/api/api_client_orgs.py +2 -2
- github_agent/api/api_client_pages.py +2 -2
- github_agent/api/api_client_pulls.py +2 -2
- github_agent/api/api_client_releases.py +2 -2
- github_agent/api/api_client_repos.py +2 -2
- github_agent/api/api_client_search.py +2 -2
- github_agent/api/api_client_workflows.py +2 -2
- github_agent/auth.py +6 -6
- github_agent/connector_sources.py +1 -21
- github_agent/github_gql.py +4 -4
- github_agent/github_http.py +4 -4
- github_agent/kg_ingest.py +2 -2
- github_agent/mcp/mcp_action.py +2 -2
- github_agent/mcp/mcp_branch.py +2 -2
- github_agent/mcp/mcp_collaborator.py +2 -2
- github_agent/mcp/mcp_commit.py +2 -2
- github_agent/mcp/mcp_content.py +2 -2
- github_agent/mcp/mcp_dependabot.py +2 -2
- github_agent/mcp/mcp_issue.py +2 -2
- github_agent/mcp/mcp_org.py +2 -2
- github_agent/mcp/mcp_pull.py +2 -2
- github_agent/mcp/mcp_release.py +2 -2
- github_agent/mcp/mcp_repo.py +2 -2
- github_agent/mcp/mcp_search.py +2 -2
- github_agent/mcp_server.py +16 -8
- github_agent/ontology/__init__.py +2 -2
- github_agent/ontology/certification.json +6 -6
- github_agent/ontology/github.ttl +1 -1
- github_agent/ontology/shapes/connector.shacl.ttl +0 -120
- github_agent/skills/github-actions-ci-review/SKILL.md +1 -1
- github_agent/skills/github-agent-development/SKILL.md +86 -0
- github_agent/skills/github-backlog-planner/SKILL.md +5 -5
- github_agent/skills/github-backlog-planner/scripts/build_plan.py +1 -1
- github_agent/skills/github-ci-failure-sweep/SKILL.md +3 -3
- github_agent/skills/github-dependabot-review/SKILL.md +1 -1
- github_agent/skills/github-issue-tracking/SKILL.md +1 -1
- github_agent/skills/github-org-remediation-loop/SKILL.md +2 -2
- github_agent/skills/github-pr-review-sweep/SKILL.md +2 -2
- github_agent/skills/github-project-provisioner/SKILL.md +1 -1
- github_agent/skills/github-pull-request-create/SKILL.md +1 -1
- github_agent/skills/github-pull-request-review/SKILL.md +1 -1
- github_agent/skills/github-repository-management/SKILL.md +1 -1
- github_agent/skills/github-tools/SKILL.md +1 -1
- github_agent/skills/github-triage-resolver/SKILL.md +1 -1
- {github_agent-2.4.9.dist-info → github_agent-2.4.14.dist-info}/METADATA +9 -9
- github_agent-2.4.14.dist-info/RECORD +132 -0
- github_agent-2.4.14.dist-info/entry_points.txt +5 -0
- {github_agent-2.4.9.dist-info → github_agent-2.4.14.dist-info}/top_level.txt +0 -1
- tests/conftest.py +9 -12
- tests/test_action_discovery.py +1 -1
- tests/test_api_client_endpoints.py +1 -1
- tests/test_api_validation.py +1 -1
- tests/test_auth_client_edge_cases.py +3 -3
- tests/test_cq_paths.py +2 -2
- tests/test_default_content_surfaces.py +35 -9
- tests/test_fleet_name.py +4 -4
- tests/test_github_agent_brute_force_coverage.py +4 -4
- tests/test_github_gql.py +10 -6
- tests/test_github_http.py +49 -16
- tests/test_ingest_sources.py +6 -10
- tests/test_init_dynamics.py +1 -0
- tests/test_kg_ingest.py +5 -6
- tests/test_mcp_coverage.py +11 -3
- tests/test_mcp_package_dispatch.py +91 -31
- tests/test_model_fields.py +7 -8
- tests/test_org_crud.py +1 -1
- tests/test_pages.py +1 -1
- tests/test_skill_github_tools_fetch_comments.py +10 -3
- tests/test_skill_github_tools_inspect_pr_checks.py +13 -5
- tests/test_skill_org_remediation_classify_fix_risk.py +3 -1
- tests/test_skill_triage_resolver_classify_safe.py +10 -3
- github_agent-2.4.9.dist-info/RECORD +0 -133
- github_agent-2.4.9.dist-info/entry_points.txt +0 -11
- scripts/security_sanitizer.py +0 -318
- scripts/verify_api_integration.py +0 -320
- {github_agent-2.4.9.dist-info → github_agent-2.4.14.dist-info}/WHEEL +0 -0
- {github_agent-2.4.9.dist-info → github_agent-2.4.14.dist-info}/licenses/LICENSE +0 -0
github_agent/__init__.py
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
from scion_sdk.connector import Connector
|
|
2
|
+
from scion_sdk.connector_identity import connector_version
|
|
3
|
+
|
|
4
|
+
from github_agent.api_client import Api
|
|
5
|
+
from github_agent.auth import get_client
|
|
6
|
+
from github_agent.mcp_server import TOOL_REGISTRY
|
|
7
|
+
|
|
8
|
+
__version__ = connector_version("github_agent")
|
|
9
|
+
|
|
10
|
+
connector = Connector(
|
|
11
|
+
api=Api,
|
|
12
|
+
get_client=get_client,
|
|
13
|
+
tool_registry=TOOL_REGISTRY,
|
|
14
|
+
instructions="Github MCP Server - Manage your repositories, issues, and pull requests.",
|
|
15
|
+
)
|
|
@@ -7,15 +7,15 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
|
7
7
|
from typing import TypeVar
|
|
8
8
|
|
|
9
9
|
import requests
|
|
10
|
-
from
|
|
10
|
+
from pydantic import BaseModel
|
|
11
|
+
from scion_sdk.exceptions import (
|
|
11
12
|
AuthError,
|
|
12
13
|
MissingParameterError,
|
|
13
14
|
UnauthorizedError,
|
|
14
15
|
)
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
from
|
|
18
|
-
from pydantic import BaseModel
|
|
16
|
+
from scion_sdk.tls.profile import ResolvedTLSProfile
|
|
17
|
+
from scion_sdk.tls.resolve import resolve_tls_profile
|
|
18
|
+
from scion_sdk.utilities import get_logger
|
|
19
19
|
|
|
20
20
|
logger = get_logger(__name__)
|
|
21
21
|
T = TypeVar("T", bound=BaseModel)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
from
|
|
2
|
+
from pydantic import ValidationError
|
|
3
|
+
from scion_sdk.exceptions import (
|
|
3
4
|
ParameterError,
|
|
4
5
|
require_auth,
|
|
5
6
|
)
|
|
6
|
-
from pydantic import ValidationError
|
|
7
7
|
|
|
8
8
|
from github_agent.api.api_client_base import BaseApiClient
|
|
9
9
|
from github_agent.github_input_models import (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
from
|
|
2
|
+
from pydantic import ValidationError
|
|
3
|
+
from scion_sdk.exceptions import (
|
|
3
4
|
ParameterError,
|
|
4
5
|
require_auth,
|
|
5
6
|
)
|
|
6
|
-
from pydantic import ValidationError
|
|
7
7
|
|
|
8
8
|
from github_agent.api.api_client_base import BaseApiClient
|
|
9
9
|
from github_agent.github_input_models import (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
from
|
|
2
|
+
from pydantic import ValidationError
|
|
3
|
+
from scion_sdk.exceptions import (
|
|
3
4
|
ParameterError,
|
|
4
5
|
require_auth,
|
|
5
6
|
)
|
|
6
|
-
from pydantic import ValidationError
|
|
7
7
|
|
|
8
8
|
from github_agent.api.api_client_base import BaseApiClient
|
|
9
9
|
from github_agent.github_input_models import (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
from typing import Any
|
|
3
3
|
|
|
4
|
-
from
|
|
4
|
+
from scion_sdk.exceptions import require_auth
|
|
5
5
|
|
|
6
6
|
from github_agent.api.api_client_base import BaseApiClient
|
|
7
7
|
from github_agent.github_response_models import Response
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
from
|
|
2
|
+
from pydantic import ValidationError
|
|
3
|
+
from scion_sdk.exceptions import (
|
|
3
4
|
MissingParameterError,
|
|
4
5
|
ParameterError,
|
|
5
6
|
require_auth,
|
|
6
7
|
)
|
|
7
|
-
from pydantic import ValidationError
|
|
8
8
|
|
|
9
9
|
from github_agent.api.api_client_base import BaseApiClient
|
|
10
10
|
from github_agent.github_input_models import (
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
from urllib.parse import urlparse
|
|
3
3
|
|
|
4
|
-
from
|
|
4
|
+
from pydantic import ValidationError
|
|
5
|
+
from scion_sdk.exceptions import (
|
|
5
6
|
ParameterError,
|
|
6
7
|
require_auth,
|
|
7
8
|
)
|
|
8
|
-
from pydantic import ValidationError
|
|
9
9
|
|
|
10
10
|
from github_agent.api.api_client_base import BaseApiClient
|
|
11
11
|
from github_agent.github_input_models import (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
import requests
|
|
3
|
-
from
|
|
3
|
+
from pydantic import ValidationError
|
|
4
|
+
from scion_sdk.exceptions import (
|
|
4
5
|
ParameterError,
|
|
5
6
|
require_auth,
|
|
6
7
|
)
|
|
7
|
-
from pydantic import ValidationError
|
|
8
8
|
|
|
9
9
|
from github_agent.api.api_client_base import BaseApiClient
|
|
10
10
|
from github_agent.github_input_models import (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
from
|
|
2
|
+
from pydantic import ValidationError
|
|
3
|
+
from scion_sdk.exceptions import (
|
|
3
4
|
MissingParameterError,
|
|
4
5
|
ParameterError,
|
|
5
6
|
require_auth,
|
|
6
7
|
)
|
|
7
|
-
from pydantic import ValidationError
|
|
8
8
|
|
|
9
9
|
from github_agent.api.api_client_base import BaseApiClient
|
|
10
10
|
from github_agent.github_input_models import (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
from
|
|
2
|
+
from pydantic import ValidationError
|
|
3
|
+
from scion_sdk.exceptions import (
|
|
3
4
|
ParameterError,
|
|
4
5
|
require_auth,
|
|
5
6
|
)
|
|
6
|
-
from pydantic import ValidationError
|
|
7
7
|
|
|
8
8
|
from github_agent.api.api_client_base import BaseApiClient
|
|
9
9
|
from github_agent.github_response_models import (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
import requests
|
|
3
|
-
from
|
|
3
|
+
from pydantic import ValidationError
|
|
4
|
+
from scion_sdk.exceptions import (
|
|
4
5
|
ParameterError,
|
|
5
6
|
require_auth,
|
|
6
7
|
)
|
|
7
|
-
from pydantic import ValidationError
|
|
8
8
|
|
|
9
9
|
from github_agent.api.api_client_base import BaseApiClient
|
|
10
10
|
from github_agent.github_input_models import (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
from
|
|
2
|
+
from pydantic import ValidationError
|
|
3
|
+
from scion_sdk.exceptions import (
|
|
3
4
|
ParameterError,
|
|
4
5
|
require_auth,
|
|
5
6
|
)
|
|
6
|
-
from pydantic import ValidationError
|
|
7
7
|
|
|
8
8
|
from github_agent.api.api_client_base import BaseApiClient
|
|
9
9
|
from github_agent.github_input_models import (
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
from typing import Any
|
|
3
3
|
|
|
4
|
-
from
|
|
4
|
+
from pydantic import ValidationError
|
|
5
|
+
from scion_sdk.exceptions import (
|
|
5
6
|
ParameterError,
|
|
6
7
|
require_auth,
|
|
7
8
|
)
|
|
8
|
-
from pydantic import ValidationError
|
|
9
9
|
|
|
10
10
|
from github_agent.api.api_client_base import BaseApiClient
|
|
11
11
|
from github_agent.github_input_models import (
|
github_agent/auth.py
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/python
|
|
2
2
|
|
|
3
3
|
import httpx
|
|
4
|
-
from
|
|
4
|
+
from scion_sdk.auth.delegation import (
|
|
5
5
|
DelegationSettings,
|
|
6
6
|
current_user_token,
|
|
7
7
|
exchange_token,
|
|
8
8
|
)
|
|
9
|
-
from
|
|
10
|
-
from
|
|
9
|
+
from scion_sdk.config import setting
|
|
10
|
+
from scion_sdk.exceptions import (
|
|
11
11
|
AuthError,
|
|
12
12
|
LoginRequiredError,
|
|
13
13
|
UnauthorizedError,
|
|
14
14
|
)
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
from
|
|
15
|
+
from scion_sdk.tls.profile import ResolvedTLSProfile
|
|
16
|
+
from scion_sdk.tls.resolve import resolve_tls_profile
|
|
17
|
+
from scion_sdk.utilities import get_logger
|
|
18
18
|
|
|
19
19
|
from github_agent.api_client import Api
|
|
20
20
|
|
|
@@ -6,8 +6,7 @@ Served live as ``connector://resources``. Regenerate by editing the declarations
|
|
|
6
6
|
# ruff: noqa: E501
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
-
from
|
|
10
|
-
from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
|
|
9
|
+
from scion_sdk.ingest.live_declaration import source_meta
|
|
11
10
|
|
|
12
11
|
CONNECTOR = "github-mcp"
|
|
13
12
|
|
|
@@ -203,22 +202,3 @@ RESOURCES = (
|
|
|
203
202
|
"name": "WorkflowRun",
|
|
204
203
|
},
|
|
205
204
|
)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
def declaration() -> IngestSourceDeclaration:
|
|
209
|
-
"""The declaration the server assembles from this module."""
|
|
210
|
-
specs = []
|
|
211
|
-
for item in SOURCES:
|
|
212
|
-
for entry in item["connector_sources"]:
|
|
213
|
-
body = {k: v for k, v in entry.items() if k not in ("tool", "mapping")}
|
|
214
|
-
specs.append(
|
|
215
|
-
IngestSourceSpec.model_validate({**body, "tools": (entry["tool"],)})
|
|
216
|
-
)
|
|
217
|
-
return IngestSourceDeclaration.model_validate(
|
|
218
|
-
{
|
|
219
|
-
"connector": CONNECTOR,
|
|
220
|
-
"sources": specs,
|
|
221
|
-
"schema_mappings": SCHEMA_MAPPINGS,
|
|
222
|
-
"resources": RESOURCES,
|
|
223
|
-
}
|
|
224
|
-
)
|
github_agent/github_gql.py
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import logging
|
|
5
5
|
from typing import Any
|
|
6
6
|
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
7
|
+
from scion_sdk.exceptions import MissingParameterError
|
|
8
|
+
from scion_sdk.tls.profile import ResolvedTLSProfile
|
|
9
|
+
from scion_sdk.tls.resolve import resolve_tls_profile
|
|
10
|
+
from scion_sdk.transports.graphql import GraphQLAuth, GraphQLClient
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class GraphQL:
|
github_agent/github_http.py
CHANGED
|
@@ -7,9 +7,9 @@ import json
|
|
|
7
7
|
import ssl
|
|
8
8
|
from typing import Any
|
|
9
9
|
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
10
|
+
from scion_sdk.tls.errors import TransportSecurityError
|
|
11
|
+
from scion_sdk.tls.profile import ResolvedTLSProfile
|
|
12
|
+
from scion_sdk.tls.resolve import resolve_tls_profile
|
|
13
13
|
|
|
14
14
|
GITHUB_API_HOST = "api.github.com"
|
|
15
15
|
MAX_REQUEST_BYTES = 1 * 1024 * 1024
|
|
@@ -17,7 +17,7 @@ MAX_RESPONSE_BYTES = 8 * 1024 * 1024
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
def _tls_profile() -> ResolvedTLSProfile:
|
|
20
|
-
"""Resolve the GitHub TLS profile from the SDK (
|
|
20
|
+
"""Resolve the GitHub TLS profile from the SDK (SCION-CONNECTOR-CONTROL-R017)."""
|
|
21
21
|
try:
|
|
22
22
|
return resolve_tls_profile("github")
|
|
23
23
|
except TransportSecurityError:
|
github_agent/kg_ingest.py
CHANGED
|
@@ -4,7 +4,7 @@ CONCEPT:AU-KG.ingest.enterprise-source-extractor. The github-agent connector nat
|
|
|
4
4
|
pushes its data into the ONE epistemic-graph 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
|
-
**:Document** nodes for semantic search, through the ``
|
|
7
|
+
**:Document** nodes for semantic search, through the ``scion_sdk.ingest``
|
|
8
8
|
facade — the one connector write path; there is no self-contained fallback
|
|
9
9
|
transaction here.
|
|
10
10
|
|
|
@@ -22,7 +22,7 @@ import logging
|
|
|
22
22
|
import time
|
|
23
23
|
from typing import Any
|
|
24
24
|
|
|
25
|
-
from
|
|
25
|
+
from scion_sdk.ingest import (
|
|
26
26
|
ChangeSet,
|
|
27
27
|
Entity,
|
|
28
28
|
IngestBinding,
|
github_agent/mcp/mcp_action.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
github_agent/mcp/mcp_branch.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
github_agent/mcp/mcp_commit.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
github_agent/mcp/mcp_content.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import allow_destructive_default, get_client
|
|
13
13
|
|
github_agent/mcp/mcp_issue.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
github_agent/mcp/mcp_org.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.api.api_client_orgs import OrganizationCreationNotSupportedError
|
|
13
13
|
from github_agent.auth import allow_destructive_default, get_client
|
github_agent/mcp/mcp_pull.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import (
|
|
13
13
|
allow_destructive_default,
|
github_agent/mcp/mcp_release.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
github_agent/mcp/mcp_repo.py
CHANGED
|
@@ -5,11 +5,11 @@ Auto-generated from mcp_server.py during ecosystem standardization.
|
|
|
5
5
|
|
|
6
6
|
from typing import Any
|
|
7
7
|
|
|
8
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
9
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
10
8
|
from fastmcp import Context, FastMCP
|
|
11
9
|
from fastmcp.dependencies import Depends
|
|
12
10
|
from pydantic import Field
|
|
11
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
12
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
13
13
|
|
|
14
14
|
from github_agent.auth import allow_destructive_default, get_client
|
|
15
15
|
from github_agent.github_response_models import PagesAlreadyEnabled, PagesNotEnabled
|
github_agent/mcp/mcp_search.py
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Auto-generated from mcp_server.py during ecosystem standardization.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from agent_connector_sdk.mcp.action_dispatch import resolve_action
|
|
7
|
-
from agent_connector_sdk.mcp.concurrency import run_blocking
|
|
8
6
|
from fastmcp import Context, FastMCP
|
|
9
7
|
from fastmcp.dependencies import Depends
|
|
10
8
|
from pydantic import Field
|
|
9
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
10
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
11
11
|
|
|
12
12
|
from github_agent.auth import get_client
|
|
13
13
|
|
github_agent/mcp_server.py
CHANGED
|
@@ -22,13 +22,16 @@ warnings.filterwarnings("ignore", message=".*urllib3.*or charset_normalizer.*")
|
|
|
22
22
|
|
|
23
23
|
import logging
|
|
24
24
|
import sys
|
|
25
|
+
from pathlib import Path
|
|
25
26
|
from typing import Any
|
|
26
27
|
|
|
27
|
-
from
|
|
28
|
-
from
|
|
29
|
-
from
|
|
30
|
-
from
|
|
31
|
-
from
|
|
28
|
+
from scion_sdk.config import load_config
|
|
29
|
+
from scion_sdk.connector_identity import connector_version
|
|
30
|
+
from scion_sdk.mcp.action_dispatch import resolve_action
|
|
31
|
+
from scion_sdk.mcp.concurrency import run_blocking
|
|
32
|
+
from scion_sdk.mcp.content import ConnectorContent
|
|
33
|
+
from scion_sdk.mcp.server import create_mcp_server
|
|
34
|
+
from scion_sdk.mcp.tool_surface import register_tool_surface
|
|
32
35
|
|
|
33
36
|
from github_agent.api.api_client_orgs import OrganizationCreationNotSupportedError
|
|
34
37
|
from github_agent.api_client import Api
|
|
@@ -39,7 +42,7 @@ from github_agent.auth import (
|
|
|
39
42
|
)
|
|
40
43
|
from github_agent.github_response_models import PagesAlreadyEnabled, PagesNotEnabled
|
|
41
44
|
|
|
42
|
-
__version__ = "
|
|
45
|
+
__version__ = connector_version("github_agent")
|
|
43
46
|
logger = get_logger("GithubMCPServer")
|
|
44
47
|
logger.setLevel(logging.INFO)
|
|
45
48
|
|
|
@@ -3598,10 +3601,10 @@ def register_graphql_tools(mcp: FastMCP):
|
|
|
3598
3601
|
),
|
|
3599
3602
|
) -> dict:
|
|
3600
3603
|
"""Discover the live GitHub GraphQL schema (types, fields, and attributes) in real-time."""
|
|
3601
|
-
from
|
|
3604
|
+
from scion_sdk.mcp.graphql import (
|
|
3602
3605
|
ctx_graphql_get_type_details as graphql_type_details,
|
|
3603
3606
|
)
|
|
3604
|
-
from
|
|
3607
|
+
from scion_sdk.mcp.graphql import (
|
|
3605
3608
|
ctx_graphql_list_types as graphql_schema_types,
|
|
3606
3609
|
)
|
|
3607
3610
|
|
|
@@ -3656,6 +3659,11 @@ def get_mcp_instance(
|
|
|
3656
3659
|
name="Github MCP",
|
|
3657
3660
|
version=__version__,
|
|
3658
3661
|
instructions="Github MCP Server - Manage your repositories, issues, and pull requests.",
|
|
3662
|
+
content=ConnectorContent.for_package(
|
|
3663
|
+
"github_agent",
|
|
3664
|
+
Path(__file__).resolve().parent,
|
|
3665
|
+
__version__,
|
|
3666
|
+
),
|
|
3659
3667
|
)
|
|
3660
3668
|
|
|
3661
3669
|
registered_tags = register_tool_surface(
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Data-only subpackage: it carries ``github.ttl`` (the ``owl:Ontology``
|
|
4
4
|
``http://knuckles.team/kg/github`` module — organizations, repositories, pull requests,
|
|
5
5
|
issues, releases, branches, commits, workflows and workflow runs with their review and
|
|
6
|
-
delivery relationships) which the
|
|
7
|
-
the ``
|
|
6
|
+
delivery relationships) which the scion-sdk hub federates in via
|
|
7
|
+
the ``scion_sdk.ontology_providers`` entry-point. It holds no business logic
|
|
8
8
|
and no heavy imports so the hub can resolve it cheaply.
|
|
9
9
|
"""
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"api_version": "
|
|
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": "6f078a7022400c28ab341f80f040caf578f086334c075514f85335dd1e2520a5",
|
|
6
6
|
"github_agent/ontology/mappings/source.yaml": "7ff7a37550f825a61fe6d0f9529206f4efe2727431e32b8ab95a39a32bdced43",
|
|
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": "709f555b7b8cc6b1e0adddfeb8e077834f5db548bed4a904afd2a195e49aab1c"
|
|
9
9
|
},
|
|
10
10
|
"checks": {
|
|
11
11
|
"declared_tool_schema": "passed",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"synthetic_fixture_contract": "passed"
|
|
16
16
|
},
|
|
17
17
|
"compatibility": {
|
|
18
|
-
"
|
|
18
|
+
"agent_utilities": ">=2.5.0,<3",
|
|
19
19
|
"bundle_schema": "2",
|
|
20
20
|
"epistemic_graph": ">=2.27.0,<3"
|
|
21
21
|
},
|
|
22
|
-
"connector": "github-
|
|
22
|
+
"connector": "github-agent",
|
|
23
23
|
"kind": "ConnectorSourceAttestation",
|
|
24
24
|
"live_certified": false,
|
|
25
25
|
"mode": "offline-source",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"signer": "UNSIGNED-PREVIEW",
|
|
30
30
|
"signing_public_key": "",
|
|
31
31
|
"status": "source-validated",
|
|
32
|
-
"validated_at": "2026-
|
|
32
|
+
"validated_at": "2026-11-01T15:28:57Z"
|
|
33
33
|
}
|
github_agent/ontology/github.ttl
CHANGED
|
@@ -218,4 +218,4 @@
|
|
|
218
218
|
rdfs:comment """GitHub source-control, code-review and CI/CD model — organizations,
|
|
219
219
|
repositories, pull requests, issues, releases, branches, commits, workflows and
|
|
220
220
|
workflow runs, with their review and delivery relationships — federated into the
|
|
221
|
-
|
|
221
|
+
scion-sdk knowledge-graph hub. Reuses the shared :Person and :Document classes.""" .
|