# smallrye-mcp **Repository Path**: mirrors_smallrye/smallrye-mcp ## Basic Information - **Project Name**: smallrye-mcp - **Description**: Standard MCP annotations - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-14 - **Last Updated**: 2026-01-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SmallRye MCP _"[Model Context Protocol](https://modelcontextprotocol.io/) (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools."_ This extension define a declarative APIs that enable developers to implement the MCP server features easily. ## Example of usage Add server features (prompts, resources and tools) represented by _annotated business methods_ of beans. ```java public class ServerFeatures { @Inject CodeService codeService; @Tool(description = "Converts the string value to lower case") String toLowerCase(String value) { return value.toLowerCase(); } @Prompt(name = "code_assist") PromptMessage codeAssist(@PromptArg(name = "lang") String language) { return PromptMessage.withUserRole(new TextContent(codeService.assist(language))); } @Resource(uri = "file:///project/alpha") BlobResourceContents alpha(RequestUri uri) throws IOException{ return BlobResourceContents.create(uri.value(), Files.readAllBytes(Paths.ALPHA)); } } ``` ## History This is a copy (with some modifications) from the API defined in https://github.com/quarkiverse/quarkus-mcp-server/tree/main/core/runtime/src/main/java/io/quarkiverse/mcp/server.