Skip to content

igmarin/agent-mcp-runtime

Agent MCP Runtime

Agent MCP Runtime Logo

Note: This project is currently under active development and may undergo significant changes.

MIT License Rust Gemini CodeRabbit Pull Request Reviews

Part of the AI Skill Ecosystem

This repo is one of 6 in a composable AI skill ecosystem:

Repo Role
ruby-core-skills 15 shared Ruby skills + process discipline
rails-agent-skills 28 Rails-specific skills + 9 agents
hanakai-yaku 35 Hanami/dry-rb skills + 10 agents
agnostic-planning-skills 10 planning skills + 4 agents
agent-mcp-runtime Rust CLI runtime (pack resolution, MCP)
ruby-skill-bench Benchmark/eval engine

See the Ecosystem Overview for the full architecture.

Key Features

  • Strict Compile-Time Safety: Zero unsafe code permitted (unsafe_code = "deny") and strict workspace linting gates.
  • Asynchronous ReAct Runner: Orchestrates reasoning and action loops using customizable LLM providers via a factory service (LlmProviderFactory).
  • Model Context Protocol (MCP) Client: Integrates external tools by spawning long-running subprocesses and exchanging JSON-RPC 2.0 messages over stdout/stdin with isolated stream runners.
  • Dynamic Context Merging: Connects to dynamic context provider tools (MCP HTTP) and maps outputs to database, routes, controller, or model context tiers in a framework-agnostic manner.
  • Mockable Skill Pack Caching: Employs git resolvers (SkillSourceResolver) backed by a mockable GitRunner interface for fully offline, fast testing and safe error cleanup.
  • TDD Frontmatter Parser: Parses Markdown frontmatter to extract metadata for agent skills/tools.
  • GitHub Actions CI/CD: Automatic code formatting, strict clippy checks, test suites, and vulnerability scanning (rustsec/audit-check).

Architecture

graph TD
    User([Task Request]) --> Runner[AgentRunner]
    Runner --> Parser[FrontmatterParser]
    Runner --> Provider[LlmProvider Trait]
    Runner --> Tool[Tool Trait]
    Provider --> MockProvider[MockLlmProvider]
    Tool --> MockTool[MockTool]
    Tool --> McpTool[McpTool]
    McpTool --> Client[McpClient]
    Client --> Subprocess[MCP Server Subprocess]
Loading

For detailed information about the system and ecosystem, refer to the following documentation:

  • 🏗️ Ecosystem Overview: Architecture map and repository interaction logic.
  • 🚀 Migration Guide: Reorganization details, list of moved/new skills, and code migration steps.
  • 📐 System Architecture: Deep dive into the ReAct loop engine, traits, and subprocess client.
  • 🤖 Agent Guidelines: Instructions, strict constraints, and contribution history for AI agents.
  • Gemini Integration: Gemini setup, model recommendations, and JSON payload structures.
  • 🛡️ Security Policy: Vulnerability reporting, memory safety configuration, and dependency audits.
  • 🏁 Getting Started: Prerequisites, building steps, and unit testing guidelines.

Getting Started

Prerequisites

Ensure you have Rust (stable 1.74+) installed.

Building and Testing

Check out docs/getting_started.md for more details.

  1. Verify Formatting

    cargo fmt --check
  2. Run Lints & Clippy

    cargo clippy --all-targets -- -D warnings
  3. Run Test Suite

    cargo test

Repository Health

We practice strict repository hygiene. Every commit is audited in GitHub Actions CI for formatting, clippy warnings, tests correctness, and dependency security audits via Cargo Audit.

About

Agent MCP Runtime

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages