SkillPedia Skills Encyclopedia
中文 EN

MCP 服务 2026-08-02 15:07 UTC

MCPJungle

由提交人 goodmai 提交,主要更新类型为:新增功能与能力扩展。提交说明:feat(server): add --host / MCPJUNGLE_HOST to choose the bind interface (#287)。带来了新的能力与可配置项,扩展了使用场景。

goodmai 12648be mcpjungle/MCPJungle

Commit提交信息原文

feat(server): add --host / MCPJUNGLE_HOST to choose the bind interface (#287)

* feat(server): add --host / MCPJUNGLE_HOST to choose the bind interface

`mcpjungle start` builds its listen address as `":" + port`, so the server
always listens on every interface and there is no way to ask for anything
else — `--port 127.0.0.1:8080` fails with "too many colons in address".

That matters for a development-mode server: it has no authentication, so on a
machine with a LAN address the gateway — and with it every tool of every
upstream registered behind it — is reachable from the whole network. Running
the local gateway on loopback should not require a firewall rule.

--host mirrors --port: flag > MCPJUNGLE_HOST env > default. The default is the
empty string, which net.JoinHostPort renders as ":8080" — byte for byte the
current behaviour, so existing deployments are unaffected.

  mcpjungle start --host 127.0.0.1
  MCPJUNGLE_HOST=127.0.0.1 mcpjungle start

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* handle edge case of --host "" and add tests

* rename env var to MCPJUNGLE_BIND_HOST & fix tests

* Add end to end tests

* update docs

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Raghav <duaraghav8@protonmail.com>