
dpella/mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Haskell 用のモデルコンテキストプロトコル (MCP) の完全な実装は、2 つのパッケージに分割します
概要
Haskell 用のモデルコンテキストプロトコル (MCP) の完全な実装は、2 つのパッケージに分割します。 - — 最小限の依存関係(エソン、ベース、コンテナ、テキスト)を持つ純粋なプロトコルタイプ - — JWT認証によるサーヴァントベースのHTTPサーバー このリポジトリは、 Haskell のモデルコンテキストプロトコルの型安全実装を提供します。 MCP は、アプリケーションが大きい言語モデル (LLM) にコンテキストを提供し、AI モデルがデータソースやツールを安全に接続できるようにするオープンプロトコルです.
概要(AI 翻訳)
Haskell 用のモデルコンテキストプロトコル (MCP) の完全な実装は、2 つのパッケージに分割します。
-[mcp-types — 最小限の依存関係(エソン、ベース、コンテナ、テキスト)を持つ純粋なプロトコルタイプ
-[mcp — JWT認証によるサーヴァントベースのHTTPサーバー
概要
このリポジトリは、 Haskell のモデルコンテキストプロトコルの型安全実装を提供します。 MCP は、アプリケーションが大きい言語モデル (LLM) にコンテキストを提供し、AI モデルがデータソースやツールを安全に接続できるようにするオープンプロトコルです。
##特徴
- 最新プロトコルサポート:MCPプロトコルバージョン2025-06-18を実装
- 完全なMCPプロトコルの実装: すべてのMCPメッセージタイプ、リクエスト、応答、通知
- タイプ安全設計:Aesonによる自動JSONシリアライゼーションとの完全なHaskellのタイプ システム統合
-HTTP Transport:SSEレスポンスをストリーミングするサーヴァントベースのHTTPサーバー
-JWT認証:[
servant-auth-serverによるセキュア認証 - 拡張可能なサーバーインターフェイス:カスタムMCPサーバーを実装するための構成可能なハンドラフレームワーク
- ツールフレームワーク: Helper は、入力検証と構造化された結果でツールを定義するための機能
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP — Model Context Protocol for Haskell
A complete implementation of the Model Context Protocol (MCP) for Haskell, split into two packages:
mcp-types— Pure protocol types with minimal dependencies (aeson, base, containers, text)mcp— Servant-based HTTP server with JWT authentication
Overview
This repository provides a type-safe implementation of the Model Context Protocol in Haskell. MCP is an open protocol that standardizes how applications provide context to Large Language Models (LLMs), enabling AI models to securely connect to data sources and tools.
Features
- Latest Protocol Support: Implements MCP protocol version 2025-06-18
- Complete MCP Protocol Implementation: All MCP message types, requests, responses, and notifications
- Type-Safe Design: Full Haskell type system integration with automatic JSON serialization via Aeson
- HTTP Transport: Servant-based HTTP server with streaming SSE responses
- JWT Authentication: Secure authentication via
servant-auth-server - Extensible Server Interface: Configurable handler framework for implementing custom MCP servers
- Tool Framework: Helper functions for defining tools with input validation and structured results
Architecture
The implementation is organized into two packages:
mcp-types
Core protocol types with minimal dependencies — suitable for building clients or alternative server implementations.
MCP.Types: Core MCP data types (Content, Resource, Tool, Prompt, Capability, etc.)MCP.Protocol: JSON-RPC 2.0 message wrappers, all client/server request/response types, notification typesMCP.Aeson: Custom Aeson parsing options
mcp
Servant-based server implementation. Re-exports MCP.Protocol and MCP.Types for convenience.
MCP.Server: Core server infrastructure withMCPServerTmonad transformer,ProcessHandlersrecord,ToolHandlerframework, JWT-authenticated Servant API, server state management and request routing
For OAuth 2.0 authorization in MCP clients, see oauth2-server.
MCP Protocol Support
| Operation | Description | Status |
|---|---|---|
initialize |
Start session and negotiate capabilities | Supported |
ping |
Health check | Supported |
resources/list |
List available resources | Supported |
resources/templates/list |
List available resource templates | Supported |
resources/read |
Read resource contents | Supported |
resources/subscribe |
Subscribe to resource updates | Supported |
resources/unsubscribe |
Unsubscribe from resource updates | Supported |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →