{"repo":"frozenlib/mcp-attr","free":true,"listed":false,"github":"https://github.com/frozenlib/mcp-attr","clone":"git clone https://github.com/frozenlib/mcp-attr.git","description":"A library for declaratively building Model Context Protocol servers.","language":"Rust","stars":28,"topics":["mcp"],"license":null,"category":"mcp-servers","readme_excerpt":"mcp-attr A library for declaratively building Model Context Protocol servers. Features mcp-attr is a crate designed to make it easy for both humans and AI to create [Model Context Protocol] servers. To achieve this goal, it has the following features: - Declarative Description : - Use attributes like #[mcp server] to describe MCP servers with minimal code - Fewer lines of code make it easier for humans to understand and consume less context window for AI - DRY (Don't Repeat Yourself) Principle : - Declarative description ensures code follows the DRY principle - Prevents AI from writing inconsistent code - Leveraging the Type System : - Expressing information sent to MCP clients through types reduces source code volume and improves readability - Type errors help AI with coding - rustfmt Friendly : - Only uses attribute macros that can be formatted by rustfmt - Ensures AI-generated code can be reliably formatted Quick Start Installation Add the following to your Cargo.toml : Example Support Status Protocol Versions - 2025-03-26 - 2024-11-05 Transport - stdio SSE is not yet supported. However, transport is extensible, so custom transports can be implemented. Methods Attribute [ McpServer ] methods Model context protocol methods -------------------------- ------------------------------------------------------------------------ ------------------------------------------------------------------------ [ #[prompt] ](#prompt) [ prompts list ] [ prompts get ] [ prompts/list ] [ prompts","default_branch":null,"files":null,"tree":[],"storefront":"/r/frozenlib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/frozenlib/mcp-attr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}