razaali10 commited on
Commit
ce791fe
Β·
verified Β·
1 Parent(s): 83e3fdd

Delete CLIENTS.md

Browse files
Files changed (1) hide show
  1. CLIENTS.md +0 -91
CLIENTS.md DELETED
@@ -1,91 +0,0 @@
1
- # Connecting clients
2
-
3
- Base URL: `https://<owner>-<space-name>.hf.space`
4
- (shown on the Space page once it's running β€” e.g. `https://razaali10-epanet-mcp-server.hf.space`)
5
-
6
- Two endpoints:
7
- - **Streamable HTTP** β†’ `…/mcp` (preferred by all five clients below)
8
- - **SSE** β†’ `…/sse` (legacy fallback; Claude Desktop via `mcp-remote`)
9
-
10
- If you set the `CLIENT_API_KEY` Space secret, every client must send
11
- `Authorization: Bearer <key>` (or `X-API-Key: <key>`).
12
-
13
- | Client | Transport | Static API-key header? | Notes |
14
- |--------|-----------|------------------------|-------|
15
- | HuggingChat | Streamable HTTP | βœ… | Add under Settings β†’ add MCP server |
16
- | Codex | Streamable HTTP | βœ… | `http_headers` in `config.toml` |
17
- | Perplexity | Streamable HTTP | βœ… (API Key / header) | Pro/Max/Enterprise only |
18
- | Gemini CLI | Streamable HTTP | βœ… | `httpUrl` + `headers` in `settings.json` |
19
- | ChatGPT | Streamable HTTP | ❌ (OAuth/None only) | **Run the Space with no key**, select "No authentication" |
20
-
21
- > ⚠️ **ChatGPT** cannot send a static API key. To use it, leave `CLIENT_API_KEY`
22
- > unset (open mode). If you need the key on for the other four, that's fine β€”
23
- > just skip ChatGPT, or run a second open instance for it.
24
-
25
- ---
26
-
27
- ## HuggingChat (HF ChatUI)
28
- Settings β†’ Tools / MCP β†’ add server:
29
- - **URL**: `https://<space>.hf.space/mcp`
30
- - **Header**: `Authorization: Bearer <YOUR_KEY>`
31
-
32
- ## Codex (`~/.codex/config.toml`)
33
- ```toml
34
- [mcp_servers.epanet]
35
- url = "https://<space>.hf.space/mcp"
36
- http_headers = { Authorization = "Bearer <YOUR_KEY>" }
37
- ```
38
-
39
- ## Perplexity (Pro / Max / Enterprise)
40
- Account settings β†’ Connectors β†’ **+ Custom connector β†’ Remote**:
41
- - **MCP Server URL**: `https://<space>.hf.space/mcp`
42
- - **Transport**: Streamable HTTP
43
- - **Authentication**: API Key β†’ send as header `X-API-Key: <YOUR_KEY>`
44
- (or `Authorization: Bearer <YOUR_KEY>`)
45
-
46
- ## Gemini CLI (`~/.gemini/settings.json`)
47
- ```json
48
- {
49
- "mcpServers": {
50
- "epanet": {
51
- "httpUrl": "https://<space>.hf.space/mcp",
52
- "headers": { "Authorization": "Bearer <YOUR_KEY>" },
53
- "timeout": 30000
54
- }
55
- }
56
- }
57
- ```
58
- Or one-liner:
59
- ```bash
60
- gemini mcp add --transport http \
61
- --header "Authorization: Bearer <YOUR_KEY>" \
62
- epanet https://<space>.hf.space/mcp
63
- ```
64
-
65
- ## ChatGPT (Developer Mode β€” Plus/Pro/Business/Enterprise/Edu)
66
- Requires the Space in **open mode** (no `CLIENT_API_KEY`).
67
- Settings β†’ Apps/Connectors β†’ Advanced β†’ **Developer mode** β†’ Create app:
68
- - **URL**: `https://<space>.hf.space/mcp`
69
- - **Transport**: Streamable HTTP
70
- - **Authentication**: No authentication
71
-
72
- ## Claude Desktop (SSE via mcp-remote)
73
- ```json
74
- {
75
- "mcpServers": {
76
- "epanet": {
77
- "command": "npx",
78
- "args": ["-y", "mcp-remote", "https://<space>.hf.space/sse",
79
- "--header", "Authorization: Bearer <YOUR_KEY>"]
80
- }
81
- }
82
- }
83
- ```
84
-
85
- ---
86
-
87
- ## First things to try
88
- 1. "List the bundled networks."
89
- 2. "Load net3.inp from /home/user/app/networks/ and summarise it."
90
- 3. "Run a hydraulic simulation on net3 and tell me the lowest-pressure node at hour 12."
91
- 4. "Simulate a 20% burst on a pipe in net3 and compare pressures to baseline."