Skip to main content

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 广场托管部署

  1. 先发布到 PyPI(步骤见上方)
  2. 登录 魔搭 MCP 广场
  3. 点击「创建 MCP」→ 选择「可托管部署」
  4. 填写配置:
    • 名称:jh-mes-mcp
    • 安装命令uvx jh-mes-mcp
    • 环境变量JH_MES_GATEWAY_URL=http://mom.azk168.cn/mcp-gateway/mcp
  5. 提交审核

环境变量

变量 默认值 说明
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.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

jh_mes_mcp-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file jh_mes_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: jh_mes_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for jh_mes_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8d657206db1686c4b448b8118c89270b0485ed5689dc6b9b43bcb4356b6e9e19
MD5 572bc217530eb7353f2f2aeca1ba973d
BLAKE2b-256 7f3a5a9d320f00a8f8610ce1849cb2f7512e15c4ba4257af3262dd371fabf442

See more details on using hashes here.

File details

Details for the file jh_mes_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: jh_mes_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for jh_mes_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a8362ba2b13f0bed88682e87438ed7aa562dcecfbc07a03c34b48957c4d6d68
MD5 f17eb92f4f3d594bef8025f1d0b6c5c5
BLAKE2b-256 6a9ad46f621d6ed00a64592c9db087c21133f0ea6df5e520407984e733395ee3

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.34

2 files

1.0.33

2 files

1.0.32

2 files

1.0.31

2 files

1.0.30

2 files

1.0.28

2 files

1.0.27

2 files

1.0.26

2 files

1.0.25

2 files

1.0.23

2 files

1.0.22

2 files

1.0.21

2 files

1.0.20

2 files

1.0.19

2 files

1.0.18

2 files

1.0.17

2 files

1.0.16

2 files

1.0.15

2 files

1.0.14

2 files

1.0.13

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page