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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95c183b29e2c001fbcd3f5ef201d69b367b0a3de2a370b5035096ad3ab3ba55a
|
|
| MD5 |
3ee6bcfaa8d0dfffbd504ded3e9ab918
|
|
| BLAKE2b-256 |
8eca8c6a877dd06566a4184d1f943ff8a9ed4499d5833995c1db073c93217fc0
|
Provenance
The following attestation bundles were made for emmett_mcp-0.1.0.tar.gz:
Publisher:
publish.yml on gi0baro/emmett-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emmett_mcp-0.1.0.tar.gz -
Subject digest:
95c183b29e2c001fbcd3f5ef201d69b367b0a3de2a370b5035096ad3ab3ba55a - Sigstore transparency entry: 196199291
- Sigstore integration time:
-
Permalink:
gi0baro/emmett-mcp@1845f57026be7ae9191664f1b517ac13eeae2397 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/gi0baro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1845f57026be7ae9191664f1b517ac13eeae2397 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d6ef00767c74e67f0de5c035d60db2cc09125845de24f8a09642b87e1ebf7dc
|
|
| MD5 |
55353f4c1eb5b924c8b95dcf66dbf50b
|
|
| BLAKE2b-256 |
2adbf5bd9c7e1787daced855b276af02c2d4f66af5212dd2375b61829eb19936
|
Provenance
The following attestation bundles were made for emmett_mcp-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on gi0baro/emmett-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emmett_mcp-0.1.0-py3-none-any.whl -
Subject digest:
5d6ef00767c74e67f0de5c035d60db2cc09125845de24f8a09642b87e1ebf7dc - Sigstore transparency entry: 196199297
- Sigstore integration time:
-
Permalink:
gi0baro/emmett-mcp@1845f57026be7ae9191664f1b517ac13eeae2397 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/gi0baro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1845f57026be7ae9191664f1b517ac13eeae2397 -
Trigger Event:
release
-
Statement type: