fastmcp_generator 0.1.0
fastmcp_generator: ^0.1.0 copied to clipboard
Code generator for the fastmcp framework. Annotate functions to automatically create MCP tools, resources, and prompts.
0.1.0 #
- Initial Release
- Declarative Code Generation: Implements the core build runner logic to generate MCP server handlers from Dart annotations.
- Tool Support (
@Tool): Automatically createstools/callhandlers with schema inference, type-safe argument parsing, and smart result wrapping. - Resource Support (
@Resource): Generates handlers forresources/readand supports declarative caching via thecacheDurationproperty. - Prompt Support (
@Prompt): Createsprompts/gethandlers and automatically generates the prompt's argument schema from function parameters. - Context Injection: Enables advanced tool functionality by automatically injecting an
McpContextobject for progress reporting and cancellation. - Metadata Support: Correctly parses doc comments and the
@Paramannotation for descriptions, and supports ametaproperty on annotations for custom protocol metadata.