Back to Home
koki7o icon

mcp-framework

by koki7o

Overview

A Rust framework for building AI agents with built-in Model Context Protocol (MCP) support, multi-LLM integration, and a web-based inspector for debugging.

Installation

Run Command
cargo run --example server_with_tools

Environment Variables

  • ANTHROPIC_API_KEY
  • OPENAI_API_KEY

Security Notes

The server's design allows AI agents to dynamically call registered tools, which inherently introduces risks if tools are not carefully implemented and sandboxed. The `StdioConnector` enables spawning arbitrary external commands via a 'stdio://command args' URL scheme; if an attacker can control this URL or the tool arguments, it could lead to arbitrary code execution (e.g., command injection). The Web Inspector UI (`inspector.rs`) exposes internal server state and allows direct execution of tools without authentication, making it a critical vulnerability if exposed publicly. While API keys are loaded from environment variables, the powerful dynamic execution capabilities require rigorous input sanitization and strict access controls, especially in production environments.

Similar Servers

Stats

Interest Score32
Security Score5
Cost ClassMedium
Avg Tokens2048
Stars20
Forks0
Last Update2025-12-28

Tags

AI AgentsLLMMCPRustDebugging