revert: remove MCP Gitea integration, restore direct REST client
Remove all MCP-related infrastructure in favor of direct REST API calls. MCP added layers without value: Docker container, stdio bridge, hybrid fallback, healthchecks, SSE transport — all of which added failure modes and token overhead. Deleted: - docker/mcp-gitea/docker-compose.yml (MCP container config) - scripts/mcp-gitea-stdio.cjs (stdio bridge) - scripts/e2e-mcp-stdio-test*.py (MCP E2E tests) - scripts/test-kilo-mcp-integration.py - src/kilocode/agent-manager/mcp-gitea-client.ts (548 lines of MCP wrapper) - MCP-STDIO-SETUP.md (MCP documentation) - .vscode/settings.json (hardcoded MCP config with token) - .kilo/skills/mcp-gitea-connection/ and mcp-gitea.research.md Restored: - pipeline-runner.ts: HybridGiteaClient → GiteaClient (direct REST) Removed MCP dependency, imports, and initialization. No healthcheck waits, no container startup delays. - process-continuity.md: removed MCP-specific failure modes - e2e-gns2-test.py: removed Basic Auth, use token auth; fixed spec reference
This commit is contained in:
@@ -2,23 +2,24 @@
|
||||
"""GNS-2 End-to-End Integration Test"""
|
||||
import urllib.request
|
||||
import json
|
||||
import base64
|
||||
import time
|
||||
import sys
|
||||
import os
|
||||
|
||||
USER, PASS, REPO, ISSUE = 'NW', 'eshkink0t', 'UniqueSoft/APAW', 110
|
||||
|
||||
class GiteaAPI:
|
||||
def __init__(self):
|
||||
self.base = 'https://git.softuniq.eu/api/v1'
|
||||
self.creds = base64.b64encode(f"{USER}:{PASS}".encode()).decode()
|
||||
self.token = os.environ.get('GITEA_TOKEN', '')
|
||||
|
||||
|
||||
def api(self, path, data=None, method='GET'):
|
||||
url = f"{self.base}/repos/{REPO}{path}"
|
||||
req = urllib.request.Request(
|
||||
url, data=json.dumps(data).encode() if data else None,
|
||||
headers={'Content-Type': 'application/json'}, method=method)
|
||||
req.add_header('Authorization', f'Basic {self.creds}')
|
||||
req.add_header('Authorization', f'token {self.token}')
|
||||
with urllib.request.urlopen(req) as r:
|
||||
return json.loads(r.read()) if r.status != 204 else None
|
||||
|
||||
@@ -130,7 +131,7 @@ def e2e_test():
|
||||
update_checkpoint('designed', 2, 3500, 4500, 'agent-architect', 'capability-analyst',
|
||||
' - {agent: arch, invocation: arch-110-001, action: design_spec}')
|
||||
post_comment('agent-architect', 'subagent_result', 2, 3500, 4500, 'capability-analyst',
|
||||
"### Spec Designed\n- mcp-gitea-client.ts\n- docker-compose.yml")
|
||||
"### Spec Designed\n- gitea-client.ts\n- docker-compose.yml")
|
||||
replace_scoped_label('status', 'status::designed')
|
||||
add_label('cascade::depth-2')
|
||||
print("OK")
|
||||
|
||||
Reference in New Issue
Block a user