Skip to content

Commit 0c96144

Browse files
committed
Update .dockerignore
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 79d81d0 commit 0c96144

File tree

3 files changed

+35
-20
lines changed

3 files changed

+35
-20
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ temp/
332332
#----------------------------------------------------------------------
333333
*.md
334334
!README.md
335+
336+
# Application configuration files (explicitly include)
337+
!mcp-catalog.yml
335338
LICENSE
336339
CHANGELOG
337340
AUTHORS

Containerfile.lite

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ COPY run-gunicorn.sh /app/
8585
COPY mcpgateway/ /app/mcpgateway/
8686
COPY gunicorn.config.py /app/
8787
COPY plugins/ /app/plugins/
88+
COPY mcp-catalog.yml /app/
8889

8990
# Optional: Copy run.sh if it's needed in production
9091
COPY run.sh /app/

docs/docs/faq/index.md

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
```bash
99
# Using pipx - pip install pipx
10-
pipx run mcp-contextforge-gateway
10+
pipx run --spec mcp-contextforge-gateway mcpgateway --host 0.0.0.0 --port 4444
1111

12-
# Or uvx - pip install uv (default: admin/changeme)
12+
# Or uvx - pip install uv (default login: admin@example.com/changeme)
1313
uvx --from mcp-contextforge-gateway mcpgateway --host 0.0.0.0 --port 4444
1414
```
1515

@@ -198,8 +198,8 @@
198198
- `SSE_RETRY_TIMEOUT`
199199

200200
???+ example "🧵 How do I scale the number of worker processes?"
201-
- `GUNICORN_WORKERS` (for Gunicorn)
202-
- `UVICORN_WORKERS` (for Uvicorn)
201+
- Run `mcpgateway --workers 4` (Uvicorn CLI flag)
202+
- Set `GUNICORN_WORKERS` when using the bundled Gunicorn scripts
203203

204204
???+ example "📊 How can I benchmark performance?"
205205
Use `hey` against `/rpc` with sample payloads from `tests/hey`.
@@ -245,9 +245,20 @@
245245

246246
???+ example "🦜 How do I use MCP Gateway with LangChain?"
247247
```python
248-
from langchain.tools import MCPTool
249-
tool = MCPTool(endpoint="http://localhost:4444/rpc",
250-
token=os.environ["MCPGATEWAY_BEARER_TOKEN"])
248+
import os
249+
from langchain_mcp_adapters.client import MultiServerMCPClient
250+
from langgraph.prebuilt import create_react_agent
251+
252+
client = MultiServerMCPClient(
253+
{
254+
"gateway": {
255+
"url": "http://localhost:4444/mcp",
256+
"transport": "streamable_http",
257+
"headers": {"Authorization": f"Bearer {os.environ['MCPGATEWAY_BEARER_TOKEN']}"}
258+
}
259+
}
260+
)
261+
agent = create_react_agent(tools=client.get_tools(), llm=your_language_model)
251262
```
252263

253264
???+ example "🦾 How do I connect GitHub's mcp-server-git via Translate Bridge?"
@@ -257,7 +268,7 @@
257268

258269
---
259270

260-
## 👥 Multi‑Tenancy & Migration (v0.8.0)
271+
## 👥 Multi‑Tenancy & Migration (v0.7.0)
261272

262273
???+ example "🔐 How do I enable email/password login and teams?"
263274
Add the following to your `.env`:
@@ -269,7 +280,7 @@
269280
AUTO_CREATE_PERSONAL_TEAMS=true
270281
```
271282

272-
Upgrading from v0.8.0? Follow [MIGRATION-0.8.0.md](https://github.com/IBM/mcp-context-forge/blob/main/MIGRATION-0.8.0.md).
283+
Upgrading from earlier releases? Follow [MIGRATION-0.7.0.md](https://github.com/IBM/mcp-context-forge/blob/main/MIGRATION-0.7.0.md).
273284

274285
???+ info "🔁 Does basic auth still work?"
275286
Yes. Email auth is recommended for multi‑tenancy; basic auth remains available. Use `AUTH_REQUIRED` to enforce authentication.
@@ -282,20 +293,20 @@
282293
## 🔐 SSO & Team Mapping
283294

284295
???+ example "👥 Can I auto‑assign users to teams via SSO?"
285-
Yes. Use provider‑specific mappings to assign users on first login:
286-
287-
```bash
288-
# GitHub
289-
GITHUB_ORG_TEAM_MAPPING={"your-org": "team-id"}
296+
Yes. Add **Team Mapping** rules to each SSO provider (Admin UI → Manage → SSO → Provider → Team Mapping). Example JSON:
290297

291-
# Google Groups
292-
GOOGLE_GROUPS_MAPPING={"[email protected]": "team-id"}
293-
294-
# Okta
295-
OKTA_GROUP_MAPPING={"MCP Gateway Users": "team-id"}
298+
```json
299+
{
300+
"team_mapping": {
301+
"your-org": {
302+
"team_id": "team-uuid",
303+
"role": "member"
304+
}
305+
}
306+
}
296307
```
297308

298-
See the SSO guides under Manage › SSO for details.
309+
You can manage the same payload via the Admin API (`/auth/sso/admin/providers/{id}`) — see the SSO guides under Manage › SSO.
299310

300311
---
301312

0 commit comments

Comments
 (0)