emmett-mcp

Emmett-MCP is an extension for the Emmett framework that facilitates the building of MCP servers. It supports SSE transport and provides a simple interface for defining resources, tools, and prompts. This allows developers to efficiently create MCP-based applications.

GitHub Stars

4

User Rating

Not Rated

Forks

0

Issues

0

Views

2

Favorites

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
Giovanni Barillari

Physicist, software developer, SRE. Photography passionated. In love with radical honesty.

@getsentryVienna, Austria

267

Followers

63

Repositories

2

Gists

3

Total Contributions

Top Contributors

Threads