Skip to content

mcp_server_lib

GitHub Action edited this page Oct 1, 2026 · 1 revision

iso_doc_type: "Specification" iso_viewpoint: "ComponentView" type: "module" title: "factory-mcp-server β€” Crate Overview" source_path: "crates/factory-mcp-server/src/lib.rs" description: "ISO 42010 ComponentView / ISO 15289 Specification documentation for factory-mcp-server β€” Crate Overview." tags: ['iso42010', 'okf', 'component_view', 'rust', 'ast'] timestamp: "2026-10-01T14:00:00Z" generated: "agent:okf-professional-documenter" verified: "true" last_verified_commit: "fbdc5848"

factory-mcp-server β€” Crate Overview

Source: crates/factory-mcp-server/src/lib.rs Layer: Interface (Onion Architecture β€” outermost presentation layer)


MCP Server Architecture

graph TB
    MAIN["main.rs: Axum HTTP Server"]
    LIB["lib.rs: Server Core"]
    PROTO["protocol.rs: JSON-RPC"]
    TOOLS["tools/mod.rs: Tool Registry"]
    SKILLS["skills/mod.rs: Skill Registry"]
    SBX["sandbox.rs: gVisor Lifecycle"]
    FB["feedback_route.rs: Webhooks"]
    GHW["github_webhook.rs: GitHub Events"]

    MAIN --> LIB
    LIB --> PROTO
    LIB --> TOOLS
    LIB --> SKILLS
    LIB --> SBX
    LIB --> FB
    LIB --> GHW

    TOOLS --> T_EXEC["execute_code.rs"]
    TOOLS --> T_LAUNCH["launch_sandbox_pod.rs"]
    TOOLS --> T_RUN["run_tests.rs"]
    TOOLS --> T_SEC["security_review.rs"]
    TOOLS --> T_PLAN["plan_mission.rs"]
    TOOLS --> T_CTX["retrieve_context.rs"]
    TOOLS --> T_IDX["index_code.rs"]
    TOOLS --> T_JIRA["search_jira.rs"]
    TOOLS --> T_SPEC["spec_kit_tool.rs"]
    TOOLS --> T_STAT["update_mission_status.rs"]
    TOOLS --> T_BRIDGE["bridge.rs"]

    style MAIN fill:#9C27B0,stroke:#6A1B9A,color:#fff
Loading

Protocol Stack

Layer Component Protocol
Transport Axum HTTP Server HTTP/1.1, HTTP/2
Framing JSON-RPC 2.0 tools/call, tools/list
Security OpenZiti + NHI Ed25519 + Zero Trust
Execution gVisor Sandbox K8s Job + RuntimeClass

Related: Tactical Design Β· tools/mod.rs

🏠 Navigation

πŸ“Š Architecture (ISO 42010)

πŸ”’ Security & Governance

πŸ“– Operations & Quality

πŸ“¦ Crate Modules (1:1 Mirror)

factory-core (Domain)

factory-application

factory-infrastructure

factory-mcp-server

factory-cli

Clone this wiki locally