# charlesxu90/cycpepmcp architecture

> Architecture diagram of the GitHub repository charlesxu90/cycpepmcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/charlesxu90/cycpepmcp
- Repository: https://github.com/charlesxu90/cycpepmcp

## Overview

CycPepMCP is a cyclic-peptide design toolkit centered on managing MCP servers and installing step-by-step workflow skills that guide Claude Code through design protocols. Its product flow runs from CLI discovery and installation to skill execution, which directs the user through domain stages such as backbone generation, sequence design, prediction, and filtering. MCP creation is a separate management capability; benchmark visualizations are also represented. Edges are limited to README statements and source references shown in the index or excerpts; unsampled runtime wiring is not assumed.

Main entry points: [`workflow-skills/binder_design_rfpeptides.md`](https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/binder_design_rfpeptides.md) (RFpeptides workflow), [`src/skill_cli.py`](https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill_cli.py) (Skill CLI), [`src/cycpep_mcp/mcp.py`](https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/mcp.py) (MCP lifecycle), [`src/mcp_cli.py`](https://github.com/charlesxu90/cycpepmcp/blob/main/src/mcp_cli.py) (MCP CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mcp_management["MCP management"]
  node_mcp_cli["MCP CLI<br/>[mcp_cli.py]"]
  node_mcp_registry[("MCP registry<br/>[mcp_manager.py]")]
  node_mcp_lifecycle["MCP lifecycle<br/>[mcp.py]"]
  node_status_cache[("Status cache<br/>[status_cache.py]")]
  node_mcp_creation["MCP creation<br/>[mcp_creator.py]"]
  node_create_mcp_flow["Creation flow<br/>[create_mcp.py]"]
end

subgraph group_skill_workflows["Workflow skills"]
  node_skill_cli["Skill CLI<br/>[skill_cli.py]"]
  node_skill_catalog[("Skill catalog<br/>[skill_manager.py]")]
  node_skill_definition["Skill definition<br/>[skill.py]"]
  node_skill_creation["Skill creation<br/>[create_skill.py]"]
end

subgraph group_design_protocols["Design protocols"]
  node_rf_workflow["RFpeptides workflow"]
  node_af_workflow["AfCycDesign workflow"]
  node_helm_workflow["HELM-GPT workflow"]
  node_rf_pipeline["RFpeptides runner<br/>[run_pipeline.py]"]
  node_backbone["Backbone generation"]
  node_sequence["Sequence design"]
  node_validation["DL validation"]
  node_filtering["Physics filtering"]
  node_selection["Clustering selection"]
end

subgraph group_benchmark_visuals["Benchmark visuals"]
  node_af_viz["AfCycDesign visuals"]
  node_helm_viz["HELM-GPT visuals"]
  node_rf_viz["RFpeptides visuals"]
  node_plot_style["Plot styling"]
end

node_user(("Engineer"))
node_claude_code["Claude Code"]

node_user -->|"runs commands"| node_mcp_cli
node_mcp_cli -->|"queries registry"| node_mcp_registry
node_mcp_cli -->|"manages servers"| node_mcp_lifecycle
node_mcp_lifecycle -->|"reads status"| node_status_cache
node_mcp_registry -->|"holds MCPs"| node_mcp_lifecycle
node_user -->|"creates MCP"| node_create_mcp_flow
node_create_mcp_flow -->|"runs pipeline"| node_mcp_creation
node_create_mcp_flow -->|"registers result"| node_mcp_registry
node_user -->|"runs commands"| node_skill_cli
node_skill_cli -->|"manages skills"| node_skill_catalog
node_skill_cli -->|"creates skills"| node_skill_creation
node_skill_catalog -->|"loads definitions"| node_skill_definition
node_skill_catalog -->|"installs required MCPs"| node_mcp_lifecycle
node_skill_cli -->|"guides execution"| node_claude_code
node_claude_code -->|"follows protocol"| node_rf_workflow
node_claude_code -->|"follows protocol"| node_af_workflow
node_claude_code -->|"follows protocol"| node_helm_workflow
node_rf_workflow -->|"generates"| node_backbone
node_rf_workflow -->|"designs"| node_sequence
node_rf_workflow -->|"validates"| node_validation
node_rf_workflow -->|"filters"| node_filtering
node_rf_workflow -->|"clusters and ranks"| node_selection
node_rf_workflow -.->|"runner path"| node_rf_pipeline
node_af_viz -->|"uses styling"| node_plot_style
node_helm_viz -->|"uses styling"| node_plot_style
node_rf_viz -->|"uses styling"| node_plot_style

click node_mcp_cli "https://github.com/charlesxu90/cycpepmcp/blob/main/src/mcp_cli.py"
click node_mcp_registry "https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/mcp_manager.py"
click node_mcp_lifecycle "https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/mcp.py"
click node_status_cache "https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/status_cache.py"
click node_mcp_creation "https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/mcp_creator.py"
click node_create_mcp_flow "https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/create_mcp.py"
click node_skill_cli "https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill_cli.py"
click node_skill_catalog "https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill/skill_manager.py"
click node_skill_definition "https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill/skill.py"
click node_skill_creation "https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill/create_skill.py"
click node_rf_workflow "https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/binder_design_rfpeptides.md"
click node_af_workflow "https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/binder_design_afcycdesign.md"
click node_helm_workflow "https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/binder_design_helmgpt.md"
click node_rf_pipeline "https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/scripts/rfpeptides/run_pipeline.py"
click node_af_viz "https://github.com/charlesxu90/cycpepmcp/tree/main/workflow-skills/scripts/afcycdesign"
click node_helm_viz "https://github.com/charlesxu90/cycpepmcp/tree/main/workflow-skills/scripts/helmgpt"
click node_rf_viz "https://github.com/charlesxu90/cycpepmcp/tree/main/workflow-skills/scripts/rfpeptides"
click node_plot_style "https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/scripts/plot_style_utils.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mcp_cli,node_mcp_registry,node_mcp_lifecycle,node_status_cache,node_mcp_creation,node_create_mcp_flow toneBlue
class node_skill_cli,node_skill_catalog,node_skill_definition,node_skill_creation toneAmber
class node_rf_workflow,node_af_workflow,node_helm_workflow,node_rf_pipeline,node_backbone,node_sequence,node_validation,node_filtering,node_selection toneMint
class node_af_viz,node_helm_viz,node_rf_viz,node_plot_style toneRose
class node_user,node_claude_code toneIndigo
```

## Components

### MCP management

- [MCP CLI](https://github.com/charlesxu90/cycpepmcp/blob/main/src/mcp_cli.py): `src/mcp_cli.py`
- [MCP registry](https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/mcp_manager.py): `src/cycpep_mcp/mcp_manager.py`
- [MCP lifecycle](https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/mcp.py): `src/cycpep_mcp/mcp.py`
- [Status cache](https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/status_cache.py): `src/cycpep_mcp/status_cache.py`
- [MCP creation](https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/mcp_creator.py): `src/cycpep_mcp/mcp_creator.py`
- [Creation flow](https://github.com/charlesxu90/cycpepmcp/blob/main/src/cycpep_mcp/create_mcp.py): `src/cycpep_mcp/create_mcp.py`

### Workflow skills

- [Skill CLI](https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill_cli.py): `src/skill_cli.py`
- [Skill catalog](https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill/skill_manager.py): `src/skill/skill_manager.py`
- [Skill definition](https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill/skill.py): `src/skill/skill.py`
- [Skill creation](https://github.com/charlesxu90/cycpepmcp/blob/main/src/skill/create_skill.py): `src/skill/create_skill.py`

### Design protocols

- [RFpeptides workflow](https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/binder_design_rfpeptides.md): `workflow-skills/binder_design_rfpeptides.md`
- [AfCycDesign workflow](https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/binder_design_afcycdesign.md): `workflow-skills/binder_design_afcycdesign.md`
- [HELM-GPT workflow](https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/binder_design_helmgpt.md): `workflow-skills/binder_design_helmgpt.md`
- [RFpeptides runner](https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/scripts/rfpeptides/run_pipeline.py): `workflow-skills/scripts/rfpeptides/run_pipeline.py`
- **Backbone generation**
- **Sequence design**
- **DL validation**
- **Physics filtering**
- **Clustering selection**

### Benchmark visuals

- [AfCycDesign visuals](https://github.com/charlesxu90/cycpepmcp/tree/main/workflow-skills/scripts/afcycdesign): `workflow-skills/scripts/afcycdesign`
- [HELM-GPT visuals](https://github.com/charlesxu90/cycpepmcp/tree/main/workflow-skills/scripts/helmgpt): `workflow-skills/scripts/helmgpt`
- [RFpeptides visuals](https://github.com/charlesxu90/cycpepmcp/tree/main/workflow-skills/scripts/rfpeptides): `workflow-skills/scripts/rfpeptides`
- [Plot styling](https://github.com/charlesxu90/cycpepmcp/blob/main/workflow-skills/scripts/plot_style_utils.py): `workflow-skills/scripts/plot_style_utils.py`

### Other components

- **Engineer**
- **Claude Code**

## Connections

- Engineer → MCP CLI: runs commands (evidence: `README.md`)
- MCP CLI → MCP registry: queries registry (evidence: `src/mcp_cli.py`)
- MCP CLI → MCP lifecycle: manages servers (evidence: `src/mcp_cli.py`)
- MCP lifecycle → Status cache: reads status (evidence: `src/cycpep_mcp/mcp.py`)
- MCP registry → MCP lifecycle: holds MCPs (evidence: `src/cycpep_mcp/mcp_manager.py`)
- Engineer → Creation flow: creates MCP (evidence: `src/cycpep_mcp/create_mcp.py`)
- Creation flow → MCP creation: runs pipeline (evidence: `src/cycpep_mcp/create_mcp.py`)
- Creation flow → MCP registry: registers result (evidence: `src/cycpep_mcp/create_mcp.py`)
- Engineer → Skill CLI: runs commands (evidence: `README.md`)
- Skill CLI → Skill catalog: manages skills (evidence: `src/skill_cli.py`)
- Skill CLI → Skill creation: creates skills (evidence: `src/skill_cli.py`)
- Skill catalog → Skill definition: loads definitions (evidence: `src/skill/skill_manager.py`)
- Skill catalog → MCP lifecycle: installs required MCPs (evidence: `src/skill/skill_manager.py`)
- Skill CLI → Claude Code: guides execution (evidence: `src/skill_cli.py`)
- Claude Code → RFpeptides workflow: follows protocol (evidence: `README.md`)
- Claude Code → AfCycDesign workflow: follows protocol (evidence: `README.md`)
- Claude Code → HELM-GPT workflow: follows protocol (evidence: `README.md`)
- RFpeptides workflow → Backbone generation: generates (evidence: `README.md`)
- RFpeptides workflow → Sequence design: designs (evidence: `README.md`)
- RFpeptides workflow → DL validation: validates (evidence: `README.md`)
- RFpeptides workflow → Physics filtering: filters (evidence: `README.md`)
- RFpeptides workflow → Clustering selection: clusters and ranks (evidence: `README.md`)
- RFpeptides workflow → RFpeptides runner: runner path
- AfCycDesign visuals → Plot styling: uses styling (evidence: `workflow-skills/scripts/afcycdesign/afcycdesign_viz.py`)
- HELM-GPT visuals → Plot styling: uses styling (evidence: `workflow-skills/scripts/helmgpt/helmgpt_viz.py`)
- RFpeptides visuals → Plot styling: uses styling (evidence: `workflow-skills/scripts/rfpeptides/rfpeptides_viz.py`)
