Welcome to the Chungoid Core MCP (Meta-Cognitive Project) Server! This system facilitates an AI-driven, stage-based workflow for software project development.
The server manages a multi-stage process where an AI agent (like you!) interacts via defined tools to perform tasks like design, planning, implementation, validation, and release preparation for a target software project.
To begin a new project managed by Chungoid:
- Navigate: Open your terminal in the directory where you want your new project to reside.
- Initialize: Use the Chungoid client (e.g., Cursor chat) connected to this server and run the initialization:
@chungoid initialize_project target_directory="."
- (Replace
.
with the full path if you aren't running the client from the target directory itself). - This creates a
.chungoid/
directory containing essential state files (project_status.json
). - It also automatically sets the project context for your current session.
- (Replace
Chungoid uses a sequential, stage-based workflow. Each stage focuses on a specific part of development and has defined goals and expected outputs (artifacts).
- Stage 0: Discovery & Design: Understand the goal, research, create
requirements.md
andblueprint.md
. - Stage 1: Design Validation: Review Stage 0 artifacts, ensure feasibility/clarity, produce
validation_report.json
. - Stage 2: Implementation Planning: Create
implementation_plan.md
anddetailed_interfaces.md
based on the validated design. - Stage 3: Implementation & Unit Testing: Write code incrementally according to the plan, add unit tests, run static analysis. Produce code artifacts and reports (
static_analysis_report.json
,unit_test_report.json
). - Stage 4: Validation & QA: Perform integration testing, security checks, etc., on the implemented code. Produce reports (
integration_report.json
, etc.). - Stage 5: Release Preparation: Finalize
README.md
,docs/
, packaging files, andrelease_notes.md
.
You interact with the server using specific tools via your client (e.g., @chungoid tool_name ...
). Key tools include:
initialize_project
: (Human driven) As shown above, Sets up a new project directory.set_project_context
: (Human Driven)Tells the server which project directory subsequent commands should apply to for your session. Useful if managing multiple projects or if context is lost.get_project_status
: (Human Driven) Retrieves the current status, including completed stages and runs.load_reflections
: (Self/Agent/Engine Driven) Loads reflections/notes stored from previous stages.retrieve_reflections
:(Self/Agent/Engine Driven) Searches stored reflections for specific information.prepare_next_stage
: (Self/Agent/Engine Driven) Determines the next stage based on the project status and provides you with the prompt (role, goals, tasks) for that stage.get_file relative_path
: (Self/Agent/Engine Driven) Reads the content of a file within the currently set project context.set_pending_reflection
: (Self/Agent/Engine Driven) Required before submitting. Stages your reflection text temporarily.submit_stage_artifacts
: (Self/Agent/Engine Driven) Submits the results of a stage. This updates the project status and stores artifact/reflection context. Note: Thereflection_text
is picked up automatically from the previousset_pending_reflection
call.
Typical Flow:
- Write a brief summary of the goal you wish to acheive with your software project in goal.txt
- Send agent request to
set_project_context
orinitialize_project
- Send agent request to
prepare_next_stage
- Refine your goal.txt by discussing with the agent how to optimize it for success.
- Send agent request to
execute_next_stage
- Follow the stages workflow and let the agent guide you through the phases & use its chungoid tools to store state artifacts, research artifacts, documentation artifacts, etc.
- Use
get_project_status
at any point in time to reflect on current state and next steps if you need guidance.
- Project Status (
.chungoid/project_status.json
): Tracks the history of stage runs and their outcomes (PASS/FAIL). - Artifacts: Files generated or modified during a stage (code, documents, reports).
- Reflections: Your thoughts, analysis, or rationale recorded during a stage, stored for context.
- Context: Information (status, artifacts, reflections) gathered and potentially passed into stage prompts.
This project structure contains the server implementation. Development of the server (meta-development) occurs in the parent chungoid-mcp
(currently private) repository structure. This is autonomously built from within an abstraction layer which uses a modified version of the chungoid workflow, and soon.. A2A protocol.
In the early days, ambitious AI projects were often chaotic. Developers faced a swirling vortex of high-level goals, vague requirements, shifting dependencies, and endless potential paths. Progress stalled in "analysis paralysis," the sheer complexity overwhelming any attempt at structured development. They needed a new paradigm.
The breakthrough came from a simple observation: even the most complex system could be broken down. Like eating an elephant one bite at a time, the team realized they needed to isolate manageable "chunks" of the problem – a specific feature, a single module, a defined stage of development. This wasn't just task breakdown; it was about creating self-contained units of work with clear inputs and outputs.
Just chunking wasn't enough. They needed a process to handle each chunk consistently: define it (Stage 0), validate it (Stage 1), plan its implementation (Stage 2), build and test it (Stage 3), validate the build (Stage 4), and prepare it for integration (Stage 5). Crucially, the system needed to learn from each chunk – reflections stored in a persistent memory (like ChromaDB) to inform the next. This meta-cognitive loop was vital.
They weren't just creating chunks; they were designing a system that operated on chunks. This system had its own lifecycle, its own internal state, its own memory, and distinct operational phases (the stages). It felt less like a static plan and more like an autonomous entity designed specifically to process these chunks. The suffix "-oid" came to mind – signifying something "like" or "resembling" a self-contained, purposeful entity. It wasn't just a chunk; it was the Chunk-Processor, the Chunk-Handler, the Chunk-oid.
During a late-night whiteboard session, mapping out the flow between stages, agents, and the reflection database, someone drew a box around the entire process – the State Manager, the Prompt Manager, the Stage Executor, the Memory. "This whole thing," they declared, gesturing at the diagram, "it's the... the Chungoid. It takes the big messy goal, breaks it into chunks, digests each one through the stages, learns, and moves on."
The name stuck. "Chungoid" came to represent not just the act of chunking, but the entire meta-cognitive, agent-driven framework designed to systematically consume complexity through sequential, reflective stages. It embodied the structured approach, the learning capability, and the staged progression – the intelligent system that brings order to the chaos of creation.