emmett-mcp
Emmett-MCP is an extension for the Emmett framework that facilitates the building of MCP servers. It supports SSE transport and allows for easy definition of resources, tools, and prompts. This enables real-time data processing and communication.
GitHub Stars
4
User Rating
Not Rated
Favorites
0
Views
26
Forks
0
Issues
0
README
Emmett-MCP
An extension for Emmett and Emmett55 to build MCP servers.
Note: Emmett-MCP only supports the SSE transport.
In a nutshell
from emmett55 import App
from emmett_mcp import MCP, MCPModule
app = App(__name__)
mcp = app.use_extension(MCP)
mcp_server: MCPModule = app.mcp_module(__name__, "mcp", url_prefix="/mcp")
@mcp_server.resource("echo://{message}")
def echo_resource(message: str) -> str:
return f"Resource echo: {message}"
@mcp_server.tool()
def echo_tool(message: str) -> str:
return f"Tool echo: {message}"
@mcp_server.prompt()
def echo_prompt(message: str) -> str:
return f"Please process this message: {message}"
License
Emmett-MCP is released under BSD license. Check the LICENSE file for more details.
Author Information
Physicist, software developer, SRE. Photography passionated. In love with radical honesty.
@getsentryVienna, Austria
267
Followers
63
Repositories
2
Gists
0
Total Contributions