TG

trpc-group/trpc-mcp-go

Developer tools

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

66 stars 34 forks 品質 59 トレンド 34NOASSERTION

trpc-group/trpc-mcp-go は [https://github.com/trpc-group/trpc-mcp-go.] からインポートされた MCP サーバーの候補です

概要

trpc-group/trpc-mcp-go は [https://github.com/trpc-group/trpc-mcp-go.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

包括的なストリーミングHTTPサポートを備えたモデルコンテキストプロトコル(MCP)のGo実装。 クライアントアプリケーションとツール/リソース間の効率的な通信を可能にするライブラリです。

##特徴

コア機能

-フルMCP仕様サポート:MCPを実装し、最大2025-03-26のプロトコルバージョンをサポートしています(クライアントの互換性については、デフォルトで2024-11-05)。 -Streaming Support:サーバー送信イベント(SSE)でリアルタイムのデータストリーミング

  • ツールフレームワーク: 構造化されたパラメーター処理でツールを登録して実行 -Struct-First API: 型安全でGo structからスキーマを自動的に生成
  • リソース管理: テキストとバイナリリソースをRESTfulインターフェイスで管理
  • プロンプトテンプレート: LLMインタラクションのプロンプトテンプレートの作成と管理
  • 進捗通知: 長期運用における進捗状況更新のサポート -Logging System:設定可能なレベルの統合ロギング

輸送オプション

trpc-mcp-go は、異なる展開シナリオのための 3 つの輸送メカニズムをサポートしています。

###STDIO トランスポート

  • ** Case**: ローカル統合、コマンドラインツール、クロス言語の互換性

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

README

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

tRPC MCP Go: Model Context Protocol Implementation with Streaming HTTP Support

A Go implementation of the Model Context Protocol (MCP) with comprehensive streaming HTTP support. This library enables efficient communication between client applications and tools/resources.

Features

Core Features

  • Full MCP Specification Support: Implements MCP, supporting protocol versions up to 2025-03-26 (defaulting to 2024-11-05 for client compatibility in examples).
  • Streaming Support: Real-time data streaming with Server-Sent Events (SSE)
  • Tool Framework: Register and execute tools with structured parameter handling
  • Struct-First API: Generate schemas automatically from Go structs with type safety
  • Resource Management: Serve text and binary resources with RESTful interfaces
  • Prompt Templates: Create and manage prompt templates for LLM interactions
  • Progress Notifications: Built-in support for progress updates on long-running operations
  • Logging System: Integrated logging with configurable levels

Transport Options

trpc-mcp-go supports three transport mechanisms for different deployment scenarios:

STDIO Transport

  • Use Case: Local integrations, command-line tools, cross-language compatibility
  • Communication: Standard input/output streams with JSON-RPC
  • Process Model: Client launches server as subprocess
  • Benefits: Simple, cross-platform, supports TypeScript/Python servers

Streamable HTTP Transport (Recommended)

  • Use Case: Web integrations, multi-client servers, production deployments
  • Communication: HTTP POST requests with optional SSE streaming
  • Features: Session management, resumable connections, scalability
  • Response Modes:
    • JSON responses for simple request-response
    • SSE streaming for real-time operations
  • Server Notifications: Optional GET SSE endpoint for server-initiated messages

SSE Transport (Legacy)

  • Use Case: Backward compatibility with MCP protocol version 2024-11-05
  • Communication: HTTP POST requests + dedicated SSE endpoint for server messages
  • Features: Always stateful with session management and persistent SSE connections
  • Status: Deprecated in favor of Streamable HTTP, maintained for compatibility

Connection Modes

Streamable HTTP Transport supports multiple connection modes:

  • Stateless: Simple request-response pattern without persistent sessions
  • Stateful: Session management with user context and persistent connections

SSE Transport is always stateful by design with persistent connections.

STDIO Transport uses process-based communication (no HTTP sessions).

Experimental Tasks client

See Tasks client scope, usage and validation for the opt-in SEP-2663 client and explicit stateless HTTP discovery.

Installation

go get trpc.group/trpc-go/trpc-mcp-go

Quick Start

GitHub で README 全文を見る

インストール

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

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