mcp_server_dart 1.0.0
mcp_server_dart: ^1.0.0 copied to clipboard
A developer-friendly MCP (Model Context Protocol) framework for Dart with annotations and code generation.
1.0.0 #
- ๐ Initial release of MCP Dart Framework
- ๐ท๏ธ Annotation-based development:
@MCPTool,@MCPResource,@MCPPromptannotations - ๐ง Code generation: Automatic boilerplate generation using
build_runner - ๐ก Multiple transports: Support for stdio, HTTP, and WebSocket connections
- ๐ Type-safe: Full Dart type safety with automatic parameter extraction
- ๐ JSON Schema: Automatic input schema generation from method signatures
- ๐ Complete example: Google Maps MCP server demonstrating all features
- ๐งช Testing support: Built-in support for testing MCP servers
- ๐ Comprehensive docs: Detailed README with examples and API reference
Features #
- MCPServer base class with full MCP protocol implementation
- Automatic parameter extraction from method signatures
- JSON Schema generation for tool input validation
- WebSocket and stdio transport support
- Resource and prompt management alongside tools
- Error handling and logging built-in
- Type-safe context access for tool parameters
Examples #
- Simple MCP server example
- Google Maps MCP server with multiple tools, resources, and prompts
- Comprehensive test suite demonstrating framework usage