MCP ExplorerExplorer

Emmett Mcp

@gi0baroon 10 months ago
3 BSD-3-Clause
FreeCommunity
AI Systems
#emmett#mcp
MCP extension for Emmett framework

Overview

What is Emmett Mcp

Emmett-MCP is an extension for the Emmett framework designed to build MCP servers, enabling communication via the Model Context Protocol.

Use cases

Use cases for Emmett-MCP include building chat applications, real-time data dashboards, and any application that requires efficient communication between clients and servers.

How to use

To use Emmett-MCP, import the necessary modules from Emmett and Emmett-MCP, create an instance of the App, and utilize the MCP extension to define resources, tools, and prompts for your MCP server.

Key features

Key features of Emmett-MCP include support for SSE transport, easy integration with the Emmett framework, and the ability to define various resources and tools for handling requests.

Where to use

Emmett-MCP can be used in web applications that require real-time communication and data processing, particularly in scenarios that leverage the Model Context Protocol.

Content

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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers