
dpella/mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Haskell의 모델 Context Protocol (MCP)의 완전한 구현은 두 패키지로 나뉩니다
개요
Haskell의 모델 Context Protocol (MCP)의 완전한 구현은 두 패키지로 나뉩니다. - - 최소 의존성 (대리,베이스, 컨테이너, 텍스트) - - - JWT 인증을 가진 Servant 기반 HTTP 서버 이 저장소는 Haskell의 Model Context Protocol의 Type-safe 구현을 제공합니다. MCP는 애플리케이션이 Big Language Models (LLMs)에 컨텍스트를 제공하는 방법을 표준화하는 개방형 프로토콜이며, AI 모델이 데이터 소스 및 도구에 안전하게 연결되도록 합니다.
개요(AI 번역)
Haskell의 모델 Context Protocol (MCP)의 완전한 구현은 두 패키지로 나뉩니다.
mcp-types- 최소 의존성(이슨,베이스, 컨테이너, 텍스트)의 순수한 프로토콜 유형 -mcp- JWT 인증과 함께하는 Servant-based HTTP 서버
개요
이 저장소는 Haskell의 Model Context Protocol의 Type-safe 구현을 제공합니다. MCP는 애플리케이션이 Big Language Models (LLMs)에 컨텍스트를 제공하는 방법을 표준화하는 개방형 프로토콜이며, AI 모델이 데이터 소스 및 도구에 안전하게 연결되도록 합니다.
특징
- ** 최신 프로토콜 지원**: MCP 프로토콜 버전 2025-06-18 구현
- ** MCP 프로토콜 구현 **: 모든 MCP 메시지 유형, 요청, 응답 및 알림
- Type-Safe Design: Aeson을 통해 자동 JSON 직렬화와 전체 Haskell 유형 시스템 통합
- HTTP Transport: SSE 응답을 스트리밍하는 Servant 기반 HTTP 서버
- JWT 인증:
servant-auth-server를 통해 보안 인증 - Extensible Server Interface: 사용자 지정 MCP 서버 구현을 위한 구성 핸들러 프레임 워크 -Tool Framework: 입력 검증 및 구조화 된 결과와 defining 도구에 대한 도움말 기능
이 페이지는 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 가이드부터 시작하세요 →