AM

agentiqs/mcp-kit-python

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 2 forks 品質 39 トレンド 10NOASSERTION

エージェントiqs.ai mcp-kit

概要

================================================================================================================================================================================================================================================================ モデルコンテキストプロトコル(MCP)と連携し、AIエージェントと各種データソース、API、サービス間でシームレスな統合を実現します。 マルチエージェントシステムの構築、テスト、またはデプロイする場合でも、MCP Kitは、ツールのオーケストレーションの複雑さを簡素化し、開発に強力なモック機能を提供します。 - : 既存のMCPサーバー(ホストまたは仕様から)に接続 - : REST APIをOpenAPI/Swagger仕様を使用してMCPツールに自動変換 - : LLMまたはランダムジェネレータを使用して、現実的なテストデータを生成します - : 複数のターゲットを統一インターフェイスに結合します - : OpenAIのエージェントフレームワークとのネイティブ統合 - : LangGraphワークフローのシームレスなツール統合 - : 直接MCPプロトコル通信 - : 標準MCPサーバーラッパー - : 複雑なワークフローの決定的なセットアップ - : クリーンでテスト可能なコンポーネント作成 - : セキュアなクレデンシャル管理 - : 文脈的に適切な応答を生成します.

概要(AI 翻訳)

マルチエージェントAIシステムの開発・最適化のためのMCPツーリング

================================================================================================================================================================================================================================================================ モデルコンテキストプロトコル(MCP)と連携し、AIエージェントと各種データソース、API、サービス間でシームレスな統合を実現します。 マルチエージェントシステムの構築、テスト、またはデプロイする場合でも、MCP Kitは、ツールのオーケストレーションの複雑さを簡素化し、開発に強力なモック機能を提供します。

##特徴

##柔軟なターゲットシステム -MCP Servers:既存のMCPサーバーに接続(ホストまたは仕様から) -OpenAPIインテグレーション:REST APIをOpenAPI/Swagger specsを使用してMCPツールに自動変換

  • 衝撃応答: LLM またはランダムジェネレータを使用して、現実的なテストデータを生成します。 -マルチプレックス: 複数のターゲットを統一されたインターフェイスに結合

##Framework アダプター

  • OpenAIの代理店SDK: OpenAIのエージェントフレームワークとのネイティブ統合 -LangGraph:LangGraphワークフローのシームレスなツール統合
  • 一般的なクライアントセッション:直接MCPプロトコル通信
  • 公式MCP Server:標準MCPサーバーラッパー

##構成駆動アーキテクチャ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Kit Python

MCP tooling for developing and optimizing multi-agent AI systems

A comprehensive toolkit for working with the Model Context Protocol (MCP), providing seamless integration between AI agents and various data sources, APIs, and services. Whether you’re building, testing, or deploying multi-agent systems, MCP Kit simplifies the complexity of tool orchestration and provides powerful mocking capabilities for development.

Features

Flexible Target System

  • MCP Servers: Connect to existing MCP servers (hosted or from specifications)
  • OpenAPI Integration: Automatically convert REST APIs to MCP tools using OpenAPI/Swagger specs
  • Mock Responses: Generate realistic test data using LLM or random generators
  • Multiplexing: Combine multiple targets into a unified interface

Framework Adapters

  • OpenAI Agents SDK: Native integration with OpenAI’s agent framework
  • LangGraph: Seamless tool integration for LangGraph workflows
  • Generic Client Sessions: Direct MCP protocol communication
  • Official MCP Server: Standard MCP server wrapper

Configuration-Driven Architecture

  • YAML/JSON Configuration: Declarative setup for complex workflows
  • Factory Pattern: Clean, testable component creation
  • Environment Variables: Secure credential management

Advanced Response Generation

  • LLM-Powered Mocking: Generate contextually appropriate responses using LLMs
  • Random Data Generation: Create test data for development and testing
  • Custom Generators: Implement your own response generation logic

Quick Start

Installation

uv add mcp-kit

Basic Usage

First you write the Proxy config:

# proxy_config.yaml
""" A mocked REST API target given the OpenAPI spec using LLM-generated responses
"""
target:
  type: mocked
  base_target:
    type: oas
    name: base-oas-server
    spec_url: https://petstore3.swagger.io/api/v3/openapi.json
  tool_response_generator:
    type: llm
    model: openai/gpt-4.1-nano

Don’t forget to setup the LLM API KEY:

# .env
OPENAI_API_KEY="your_openai_key"

Then we can use it as any other MCP:

# main.py
from mcp_kit import ProxyMCP

async def main():
    # Create proxy from configuration
    proxy = ProxyMCP.from_config("proxy_config.yaml")

    # Use with MCP client session adapter
    async with proxy.client_session_adapter() as session:
        tools = await session.list_tools()
        result = await session.call_tool("get_pet", {"pet_id": "777"})
        print(result)

if __name__ == "__main__":
    import asyncio
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →