Skip to content

Commit ca7d7bb

Browse files
committed
Update README
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 6f586f3 commit ca7d7bb

File tree

1 file changed

+64
-5
lines changed

1 file changed

+64
-5
lines changed

README.md

Lines changed: 64 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ python3 -m venv .venv
6161
. ./.venv/bin/activate
6262

6363
# Install mcp-contextforge-gateway
64-
pip install mcp-contextforge-gateway
64+
pip install mcp-contextforge-gateway # from pypi
65+
#pip install . # or install from latest github code after cloning repo
6566

6667
# Run mcpgateway with default options (binds to 127.0.0.1:4444) with admin:changeme
6768
mcpgateway # login to http://127.0.0.1:4444
@@ -77,7 +78,7 @@ export MCPGATEWAY_BEARER_TOKEN=$(python3 -m mcpgateway.utils.create_jwt_token --
7778

7879
# Run a local MCP Server (github) listening on SSE http://localhost:8000/sse
7980
pip install uvenv
80-
npx -y supergateway --stdio "uvenv run mcp-server-git"
81+
npx -y supergateway --stdio "uvenv run mcp-server-git" # requires node.js and npx
8182
# or time: npx -y supergateway --stdio "uvenv run mcp_server_time -- --local-timezone=Europe/Dublin" --port 8002
8283

8384
#--------------------------------------------
@@ -346,7 +347,7 @@ pipx install uv
346347
uv venv ~/.venv/mcpgateway
347348
source ~/.venv/mcpgateway/bin/activate
348349

349-
# Install the gateway package very quicmcpkly
350+
# Install the gateway package using uv
350351
uv pip install mcp-contextforge-gateway
351352

352353
# Launch wrapper
@@ -557,7 +558,7 @@ A `make compose-up` target is provided along with a [docker-compose.yml](docker-
557558

558559
> ⚠️ If any required `.env` variable is missing or invalid, the gateway will fail fast at startup with a validation error via Pydantic.
559560

560-
You can get started by copying the provided [.env.examples](.env.example) to `.env` and making the necessary edits to fit your environment.
561+
You can get started by copying the provided [.env.example](.env.example) to `.env` and making the necessary edits to fit your environment.
561562

562563
<details>
563564
<summary><strong>🔧 Environment Configuration Variables</strong></summary>
@@ -1605,6 +1606,64 @@ devpi-web - Open devpi web interface
16051606
```
16061607
</details>
16071608
1609+
## 🔍 Troubleshooting
1610+
1611+
<details>
1612+
<summary><strong>Port publishing on WSL2 (rootless Podman & Docker Desktop)</strong></summary>
1613+
1614+
### Diagnose the listener
1615+
1616+
```bash
1617+
# Inside your WSL distro
1618+
ss -tlnp | grep 4444 # Use ss
1619+
netstat -anp | grep 4444 # or netstat
1620+
```
1621+
1622+
*Seeing `:::4444 LISTEN rootlessport` is normal* – the IPv6 wildcard
1623+
socket (`::`) also accepts IPv4 traffic **when**
1624+
`net.ipv6.bindv6only = 0` (default on Linux).
1625+
1626+
### Why localhost fails on Windows
1627+
1628+
WSL 2's NAT layer rewrites only the *IPv6* side of the dual-stack listener. From Windows, `http://127.0.0.1:4444` (or Docker Desktop's "localhost") therefore times-out.
1629+
1630+
#### Fix (Podman rootless)
1631+
1632+
```bash
1633+
# Inside the WSL distro
1634+
echo "wsl" | sudo tee /etc/containers/podman-machine
1635+
systemctl --user restart podman.socket
1636+
```
1637+
1638+
`ss` should now show `0.0.0.0:4444` instead of `:::4444`, and the
1639+
service becomes reachable from Windows *and* the LAN.
1640+
1641+
#### Fix (Docker Desktop > 4.19)
1642+
1643+
Docker Desktop adds a "WSL integration" switch per-distro.
1644+
Turn it **on** for your distro, restart Docker Desktop, then restart the
1645+
container:
1646+
1647+
```bash
1648+
docker restart mcpgateway
1649+
```
1650+
1651+
</details>
1652+
1653+
<details>
1654+
<summary><strong>Gateway starts but immediately exits ("Failed to read DATABASE_URL")</strong></summary>
1655+
1656+
Copy `.env.example` to `.env` first:
1657+
1658+
```bash
1659+
cp .env.example .env
1660+
```
1661+
1662+
Then edit `DATABASE_URL`, `JWT_SECRET_KEY`, `BASIC_AUTH_PASSWORD`, etc.
1663+
Missing or empty required vars cause a fast-fail at startup.
1664+
1665+
</details>
1666+
16081667
## Contributing
16091668
16101669
1. Fork the repo, create a feature branch.
@@ -1631,7 +1690,7 @@ Licensed under the **Apache License 2.0** – see [LICENSE](./LICENSE)
16311690
Special thanks to our contributors for helping us improve ContextForge MCP Gateway:
16321691
16331692
<a href="https://github.com/ibm/mcp-context-forge/graphs/contributors">
1634-
<img alt="Contributors list" src="https://contrib.rocks/image?repo=ibm/mcp-context-forge" />
1693+
<img src="https://contrib.rocks/image?repo=ibm/mcp-context-forge&max=100&anon=0&columns=10" />
16351694
</a>
16361695
16371696
## Star History and Project Activity

0 commit comments

Comments
 (0)