You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/MCP.md
+31-8Lines changed: 31 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,34 @@ The Core layer is the trusted boundary. Skills can provide guidance, but MCP/Cor
16
16
17
17
## Start the MCP Server
18
18
19
+
Recommended for registry and zero-install setups:
20
+
21
+
```bash
22
+
npx -y chatcrystal mcp
23
+
```
24
+
25
+
If ChatCrystal is installed globally, you can also run:
26
+
19
27
```bash
20
28
crystal mcp
21
29
```
22
30
23
31
ChatCrystal MCP uses stdio transport. Configure it with `command` and `args`, not as an HTTP/SSE MCP URL.
24
32
25
-
Example agent configuration:
33
+
Recommended agent configuration:
34
+
35
+
```json
36
+
{
37
+
"mcpServers": {
38
+
"chatcrystal": {
39
+
"command": "npx",
40
+
"args": ["-y", "chatcrystal", "mcp"]
41
+
}
42
+
}
43
+
}
44
+
```
45
+
46
+
Global install configuration:
26
47
27
48
```json
28
49
{
@@ -35,7 +56,7 @@ Example agent configuration:
35
56
}
36
57
```
37
58
38
-
If a tool separately asks for an HTTP API endpoint, use `http://localhost:3721`. Do not use a bare `http://127.0.0.1` URL without a port because HTTP defaults to port 80.
59
+
Local mode connects to or auto-starts ChatCrystal Core at `http://localhost:3721` and uses `~/.chatcrystal/data` by default. If a tool separately asks for an HTTP API endpoint, use `http://localhost:3721`. Do not use a bare `http://127.0.0.1` URL without a port because HTTP defaults to port 80.
39
60
40
61
### Cloud Mode
41
62
@@ -52,14 +73,14 @@ If a tool separately asks for an HTTP API endpoint, use `http://localhost:3721`.
52
73
}
53
74
```
54
75
55
-
You can also pass environment variables from the MCP client:
76
+
You can also pass environment variables from the MCP client. Set `CHATCRYSTAL_BASE_URL` for a cloud or remote instance, and set `CHATCRYSTAL_API_TOKEN` when that instance requires authentication:
0 commit comments