This repository mixes agent orchestration, MCP servers, connectors, protocols,
and a small frontend. This document makes the issue's requested "repo assist"
material specific to groupthinking/self-correcting-executor so an agent can
map the repo, verify the MCP handler in-process, and decide what to check before
commit/merge.
self-correcting-executor/
├── agents/ # A2A framework, executor, mutator, MCP integrations
│ ├── a2a_framework.py
│ ├── a2a_mcp_integration.py
│ ├── executor.py
│ ├── mutator.py
│ ├── specialized/
│ └── unified/
├── analyzers/ # Pattern analysis helpers
├── auth/ # Auth helpers
├── config/ # MCP and component configuration
├── connectors/ # D-Wave, GitHub, LLM, xAI, MCP base connectors
├── docs/ # Architecture, planning, and task guides
├── fabric/ # State continuity and integrated MCP fabric
├── frontend/ # Vite + React UI
├── llm/ # Continuous learning system
├── mcp_runtime_template_hg/ # SDK/API/CLI MCP runtime template
├── mcp_server/ # JSON-RPC MCP server + FastMCP-backed server
├── middleware/ # Security middleware
├── protocols/ # Executable protocols/tasks
├── quantum_mcp_server/ # Quantum-focused MCP server variant
├── scripts/ # Setup, compliance, cleanup, security scripts
├── test_data/ # Real input fixtures used by tests/scripts
├── tests/ # Pytest suite
├── ui/ # Additional UI assets and guide content
└── utils/ # Shared logging and DB tracking
- Python runtime dependencies:
requirements.txtcurrently pins 117 packages, includingmcp,mcp-use, FastAPI, D-Wave Ocean SDK, LangChain, SQLAlchemy, Redis, and transformer-related packages. - CI/test dependencies:
requirements-ci.txtcontains the lightweight verification stack (black,flake8,pytest,pytest-cov,pytest-asyncio) plus the MCP, NumPy, and PostgreSQL imports needed by the collected tests. MCP/Pydantic match the production compatibility pair. - Frontend runtime dependencies:
frontend/package.jsoncurrently declares 7 runtime packages (react,react-dom,@tanstack/react-query,axios,framer-motion,lucide-react,three) and 12 dev dependencies for TypeScript, ESLint, and Vite.
flowchart TD
H[Host / Copilot / operator]
O[orchestrator.py<br/>orchestrator_mapreduce.py]
subgraph Servers[MCP servers]
M1[mcp_server/main.py<br/>custom JSON-RPC MCPServer]
M2[mcp_server/real_mcp_server.py<br/>FastMCP tool server]
M3[quantum_mcp_server/]
end
subgraph Tools[Declared MCP tools]
T1[code_analyzer]
T2[protocol_validator]
T3[self_corrector]
end
subgraph Connectors[Connectors]
C1[github_mcp_connector.py]
C2[dwave_quantum_connector.py]
C3[llm_connector.py]
C4[xai_connector.py]
end
subgraph Tasks[protocols/*.py]
P1[data_processor]
P2[file_validator]
P3[database_health_check]
P4[system_monitor]
end
H --> O
M1 --> T1
M1 --> T2
M1 --> T3
M2 --> C2
M2 --> P1
O --> Tasks
Tasks --> P1
Tasks --> P2
Tasks --> P3
Tasks --> P4
The MCP servers are separate entrypoints; no direct orchestrator-to-server
call is implied. real_mcp_server.py imports the D-Wave connector and the
data processor. Other connectors are shown as repository components, not
as dependencies of that server.
- Agents:
agents/a2a_framework.py,agents/a2a_mcp_integration.py, andagents/unified/contain agent coordination logic. - Tools:
mcp_server/main.pydeclarescode_analyzer,protocol_validator, andself_corrector. - MCP: the repo is actively using MCP packages and MCP-shaped servers
(
mcp_server/main.py,mcp_server/real_mcp_server.py,config/mcp_config.py,connectors/mcp_base.py). - Pull / push / request / commit / merge: human workflows use GitHub pull requests; cloud-agent workflows in this repo should publish progress via PR updates instead of pushing directly from the sandbox.
- Issues: link changes back to GitHub issues with
Closes #<number>. - Code: the main test entrypoint is
pytestwithpytest.iniconfigured to usetests/. - Deps: Python dependencies live in
requirements*.txt; frontend dependencies live infrontend/package.json. - Database: DB-aware execution paths are visible in
utils/db_tracker.pyandprotocols/database_health_check.py. - Actions:
.github/workflows/python-ci.ymland.github/workflows/frontend-ci.ymldefine CI. - Role assignment / security:
auth/andmiddleware/contain auth and security logic.
Yes. The repository is using MCP in two forms:
- A custom JSON-RPC server in
mcp_server/main.pywith explicit MCP methods such asinitialize,tools/list,tools/call,resources/list, andresources/read. - A FastMCP-based server in
mcp_server/real_mcp_server.pybuilt on themcppackage.
The custom handler advertises protocol version 2024-11-05. Direct calls
can verify its advertised tool and resource behavior, but do not establish
MCP specification compliance or successful transport negotiation with an
external host/client. Those require a separate integration test.
- Host: external agent host (for example Copilot, CLI, or another MCP-aware operator) orchestrates requests and permissions.
- Client: the MCP-aware caller is external to this repo; this repo does not ship a standalone client implementation.
- Server: this repo implements the server side in
mcp_server/andquantum_mcp_server/.
The focused verifier calls the custom handler in-process. It asserts the
initialize response, the advertised/listed tool names, and the actual
code_analyzer result. Any JSON-RPC error, missing capability or incorrect
analysis raises an exception and makes the command exit unsuccessfully.
This proves the handler behavior, not an external MCP transport connection.
From any directory inside the checkout:
cd "$(git rev-parse --show-toplevel)"
python -m scripts.verify_mcp_baseline
python -m pytest tests/test_repo_assist_docs.py tests/test_mcp_baseline_verifier.py -q- The repo has active
Python CIandFrontend CIworkflows. Python CIrunsblack --check .as a blocking step. Inspect the current head's logs; a previous run's result is not evidence for a new commit.pytest --cov=.is blocking: collection failures and failed assertions fail the matrix job.flake8remains advisory in the existing workflow, so a green workflow alone does not prove the repository is free of lint findings.
Project-scoped skills now live under .github/skills/:
github-actions-failure-debugging: tailored to the repo's Python/Frontend CI workflows and GitHub MCP debugging flow.codebase-summary: tailored to this repo's tree mapping, dependency checks, and MCP verification workflow.