Skip to main content

MCP extension for Emmett framework

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emmett_mcp-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emmett_mcp-0.1.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file emmett_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: emmett_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emmett_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 95c183b29e2c001fbcd3f5ef201d69b367b0a3de2a370b5035096ad3ab3ba55a
MD5 3ee6bcfaa8d0dfffbd504ded3e9ab918
BLAKE2b-256 8eca8c6a877dd06566a4184d1f943ff8a9ed4499d5833995c1db073c93217fc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett_mcp-0.1.0.tar.gz:

Publisher: publish.yml on gi0baro/emmett-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file emmett_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: emmett_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emmett_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d6ef00767c74e67f0de5c035d60db2cc09125845de24f8a09642b87e1ebf7dc
MD5 55353f4c1eb5b924c8b95dcf66dbf50b
BLAKE2b-256 2adbf5bd9c7e1787daced855b276af02c2d4f66af5212dd2375b61829eb19936

See more details on using hashes here.

Provenance

The following attestation bundles were made for emmett_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on gi0baro/emmett-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page