Change default port to 3000

This commit is contained in:
Kacper Kwapisz
2026-03-22 21:55:49 +01:00
parent fc9a2bb8f8
commit 48b3f3816f
3 changed files with 9 additions and 7 deletions
+4 -2
View File
@@ -17,9 +17,11 @@ COPY src/ src/
RUN adduser --disabled-password --no-create-home appuser
USER appuser
EXPOSE 8000
EXPOSE 3000
ENV PORT=3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD python -c "import httpx; httpx.get('http://localhost:8000/mcp', timeout=5)" || exit 1
CMD python -c "import httpx; httpx.get('http://localhost:3000/mcp', timeout=5)" || exit 1
CMD ["python", "src/server.py"]
+4 -4
View File
@@ -58,7 +58,7 @@ MCP_API_KEY=your-secret-key python src/server.py
npx @modelcontextprotocol/inspector
```
Open http://localhost:3000 and connect to `http://localhost:8000/mcp` using "Streamable HTTP" transport. Pass `Authorization: Bearer your-secret-key` header.
Open http://localhost:3000 and connect to `http://localhost:3000/mcp` using "Streamable HTTP" transport. Pass `Authorization: Bearer your-secret-key` header.
## Authentication
@@ -74,7 +74,7 @@ When connecting from Poke, add the bearer token in your connection settings.
docker build -t poke-mail .
docker run -d \
-p 8000:8000 \
-p 3000:3000 \
-v $(pwd)/config.yml:/app/config.yml:ro \
-e MCP_API_KEY=your-secret-key \
poke-mail
@@ -84,7 +84,7 @@ Or use the pre-built image from GitHub Container Registry:
```bash
docker run -d \
-p 8000:8000 \
-p 3000:3000 \
-v $(pwd)/config.yml:/app/config.yml:ro \
-e MCP_API_KEY=your-secret-key \
ghcr.io/OWNER/poke-mail:main
@@ -114,7 +114,7 @@ docker run -d \
| `CONFIG_PATH` | `config.yml` | Path to config file |
| `POKE_WEBHOOK_URL` | from config | Overrides webhook URL in config |
| `POKE_API_KEY` | from config | Overrides Poke API key in config |
| `PORT` | `8000` | HTTP server port |
| `PORT` | `3000` | HTTP server port |
## Deployment
+1 -1
View File
@@ -842,7 +842,7 @@ async def get_server_info(ctx: Context) -> dict:
# ---------------------------------------------------------------------------
if __name__ == "__main__":
port = int(os.environ.get("PORT", 8000))
port = int(os.environ.get("PORT", 3000))
host = "0.0.0.0"
logger.info("Starting poke-mail on %s:%d", host, port)
mcp.run(transport="http", host=host, port=port, stateless_http=True)