Skip to content

Commit 394e0d1

Browse files
committed
Start gw on port 4444
Signed-off-by: Mihai Criveti <[email protected]>
1 parent d261fdc commit 394e0d1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/docs/using/clients/mcp-cli.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The mcp-cli supports **stdio** connections out-of-the-box through the bundled **
1919

2020
* **Python ≥ 3.11**
2121
* **uv** (recommended) or pip for dependency management
22-
* **MCP Context Forge Gateway** running locally or remotely (default: http://localhost:8000)
22+
* **MCP Context Forge Gateway** running locally or remotely (default: http://localhost:4444)
2323
* **JWT or Basic Auth credentials** for Gateway access
2424
* **LLM Provider API keys** (optional, for chat mode):
2525
* OpenAI: `OPENAI_API_KEY` environment variable
@@ -62,7 +62,7 @@ cd mcp-context-forge
6262

6363
# Install and start the gateway
6464
make venv install serve
65-
# Gateway will be available at http://localhost:8000
65+
# Gateway will be available at http://localhost:4444
6666
```
6767

6868
---
@@ -81,7 +81,7 @@ Create a `server_config.json` file to define your MCP Context Forge Gateway conn
8181
"args": ["-m", "mcpgateway.wrapper"],
8282
"env": {
8383
"MCP_AUTH_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIn0.qQDiQwWsVy_FP4mUu0hUUTLNrCPbAxP1NgRIebW6tjo",
84-
"MCP_SERVER_CATALOG_URLS": "http://localhost:8000",
84+
"MCP_SERVER_CATALOG_URLS": "http://localhost:4444",
8585
"MCP_TOOL_CALL_TIMEOUT": "120"
8686
}
8787
}
@@ -101,7 +101,7 @@ Create a `server_config.json` file to define your MCP Context Forge Gateway conn
101101
"--rm",
102102
"-i",
103103
"-e",
104-
"MCP_SERVER_CATALOG_URLS=http://host.docker.internal:8000",
104+
"MCP_SERVER_CATALOG_URLS=http://host.docker.internal:4444",
105105
"-e",
106106
"MCP_AUTH_TOKEN=${MCPGATEWAY_BEARER_TOKEN}",
107107
"--entrypoint",
@@ -129,7 +129,7 @@ python -m mcpgateway.utils.create_jwt_token -u admin --exp 10080 --secret my-tes
129129

130130
> **⚠️ Important Notes**
131131
> - Use the **full path** to your virtual environment's Python to avoid import errors
132-
> - Make sure your MCP Context Forge Gateway is running on the correct port (default: 8000)
132+
> - Make sure your MCP Context Forge Gateway is running on the correct port (default: 4444)
133133
> - The wrapper requires `MCP_SERVER_CATALOG_URLS` environment variable
134134
135135
---
@@ -321,7 +321,7 @@ In interactive mode, use these commands:
321321
```bash
322322
# MCP Context Forge Gateway connection
323323
export MCP_AUTH_TOKEN="your-jwt-token"
324-
export MCP_SERVER_CATALOG_URLS="http://localhost:8000"
324+
export MCP_SERVER_CATALOG_URLS="http://localhost:4444"
325325

326326
# LLM Provider API keys
327327
export OPENAI_API_KEY="sk-your-openai-key"
@@ -450,7 +450,7 @@ The mcp-cli integrates with MCP Context Forge Gateway through multiple connectio
450450
1. **Start the Gateway:**
451451
```bash
452452
cd mcp-context-forge
453-
make dev # Starts on http://localhost:8000
453+
make serve # Starts on http://localhost:4444
454454
```
455455

456456
2. **Configure mcp-cli:**
@@ -462,7 +462,7 @@ The mcp-cli integrates with MCP Context Forge Gateway through multiple connectio
462462
"args": ["-m", "mcpgateway.wrapper"],
463463
"env": {
464464
"MCP_AUTH_TOKEN": "your-jwt-token",
465-
"MCP_SERVER_CATALOG_URLS": "http://localhost:8000"
465+
"MCP_SERVER_CATALOG_URLS": "http://localhost:4444"
466466
}
467467
}
468468
}
@@ -481,7 +481,7 @@ Use the official Docker image for production environments:
481481
```bash
482482
# Start the gateway
483483
docker run -d --name mcpgateway \
484-
-p 8000:4444 \
484+
-p 4444:4444 \
485485
-e HOST=0.0.0.0 \
486486
-e JWT_SECRET_KEY=my-secret-key \
487487
-e BASIC_AUTH_USER=admin \
@@ -492,7 +492,7 @@ docker run -d --name mcpgateway \
492492
export MCPGATEWAY_BEARER_TOKEN=$(docker exec mcpgateway python3 -m mcpgateway.utils.create_jwt_token --username admin --exp 10080 --secret my-secret-key)
493493

494494
# Test connection
495-
curl -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" http://localhost:8000/tools
495+
curl -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" http://localhost:4444/tools
496496
```
497497

498498
---
@@ -552,10 +552,10 @@ Your MCP Context Forge Gateway provides these tool categories:
552552

553553
- [ ] Install mcp-cli: `pip install -e ".[cli,dev]"`
554554
- [ ] Install MCP Context Forge Gateway
555-
- [ ] Start gateway: `make dev` (runs on localhost:8000)
555+
- [ ] Start gateway: `make serve` (runs on localhost:4444)
556556
- [ ] Create `server_config.json` with correct Python path
557557
- [ ] Generate JWT token for authentication
558558
- [ ] Test connection: `mcp-cli ping --server mcpgateway-wrapper`
559559
- [ ] Install Ollama and pull a compatible model (recommended)
560560
- [ ] Start chat: `mcp-cli chat --server mcpgateway-wrapper --provider ollama --model mistral-nemo:latest`
561-
- [ ] Try asking: "What tools are available?" or "What issues have been assigned to me?"
561+
- [ ] Try asking: "What tools are available?" or "What issues have been assigned to me?"

0 commit comments

Comments
 (0)