JH-MES MCP Gateway Bridge
JH-MES MCP 网关的 STDIO 桥接服务,将标准 MCP STDIO 协议转发到 HTTP 网关。
快速开始
安装
pip install jh-mes-mcp
本地使用
# 默认连接线上网关
jh-mes-mcp
# 指定网关地址
JH_MES_GATEWAY_URL=http://localhost:9093/mcp-gateway/mcp jh-mes-mcp
MCP 客户端配置
Cursor / Cherry Studio / VS Code:
{
"mcpServers": {
"jh-mes": {
"command": "uvx",
"args": ["jh-mes-mcp"],
"env": {
"JH_MES_GATEWAY_URL": "http://mom.azk168.cn/mcp-gateway/mcp"
}
}
}
}
Claude Desktop(~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"jh-mes": {
"command": "uvx",
"args": ["jh-mes-mcp"],
"env": {
"JH_MES_GATEWAY_URL": "http://mom.azk168.cn/mcp-gateway/mcp"
}
}
}
}
发布到 PyPI
# 1. 安装构建工具
pip install build twine
# 2. 构建包
cd mcp-bridge
python -m build
# 3. 上传到 PyPI
twine upload dist/*
# 或使用 TestPyPI 测试
twine upload --repository testpypi dist/*
魔搭 MCP 广场托管部署
- 先发布到 PyPI(步骤见上方)
- 登录 魔搭 MCP 广场
- 点击「创建 MCP」→ 选择「可托管部署」
- 填写配置:
- 名称:jh-mes-mcp
- 安装命令:
uvx jh-mes-mcp - 环境变量:
JH_MES_GATEWAY_URL=http://mom.azk168.cn/mcp-gateway/mcp
- 提交审核
环境变量
| 变量 | 默认值 | 说明 |
|---|---|---|
JH_MES_GATEWAY_URL |
http://mom.azk168.cn/mcp-gateway/mcp |
MCP 网关地址 |
JH_MES_TIMEOUT |
30 |
HTTP 请求超时(秒) |
架构
AI客户端 (Cursor/Cherry Studio/魔搭MCP广场)
│
│ STDIO (JSON-RPC over stdin/stdout)
▼
jh-mes-mcp (Python 桥接包)
│
│ HTTP POST (Streamable HTTP)
▼
http://mom.azk168.cn/mcp-gateway/mcp (Java MCP 网关)
│
│ RestTemplate
▼
jhmes:9090 / jerp:9091 (业务服务)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jh_mes_mcp-1.0.1.tar.gz
(3.9 kB
view details)
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 jh_mes_mcp-1.0.1.tar.gz.
File metadata
- Download URL: jh_mes_mcp-1.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625aa024f95f14469a47df441b9de756c001e59c0525b26b5b8b6e59b1ea7e8a
|
|
| MD5 |
4a581847f89c26d3ab1ce2f7e4b32642
|
|
| BLAKE2b-256 |
6df8cfef0842be0c5a061c17e7e990c66f8bb42ebabdfcf5eb3365ef5d7ab67c
|
File details
Details for the file jh_mes_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: jh_mes_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c13e7f3be7a44a1fbff375a76125afd699a900d2ce3e6f8eb09c8515c856d147
|
|
| MD5 |
9fdd8c6b866f91dbab207310d5ac3ba5
|
|
| BLAKE2b-256 |
fae0aac8c55db90211c2e99f0a1bc70d76bd61bbf29bb5003df9af1f116ea126
|