docs: add external MCP profile examples to ISO (Sam & Codex)
Adds sample external MCP registry and explicit external-call client profile alongside the default read-only Colibri MCP examples.\n\nChecks: ./scripts/check-format.sh; sh -n build.sh scripts/stage-colibri-iso.sh; python3 -m json.tool MCP examples; git diff --check
This commit is contained in:
parent
72cfcec91a
commit
47b0db16e4
3 changed files with 66 additions and 3 deletions
|
|
@ -4,15 +4,18 @@ The live USB includes `/usr/local/bin/colibri-mcp`, an MCP server that exposes
|
||||||
Colibri status, glasspane snapshots, task lists, and skills to MCP-capable
|
Colibri status, glasspane snapshots, task lists, and skills to MCP-capable
|
||||||
editors/assistants.
|
editors/assistants.
|
||||||
|
|
||||||
Default posture is read-only. Write tools are available only when the MCP server
|
Default posture is read-only. Colibri write tools are available only when the
|
||||||
process is launched with `COLIBRI_MCP_WRITE=1`.
|
MCP server process is launched with `COLIBRI_MCP_WRITE=1`. External MCP tool
|
||||||
|
calls are available only when launched with `COLIBRI_MCP_EXTERNAL_CALL=1`.
|
||||||
|
|
||||||
## Generic MCP client config
|
## Generic MCP client config
|
||||||
|
|
||||||
Most MCP clients accept a config shaped like `mcpServers`. Use one of:
|
Most MCP clients accept a config shaped like `mcpServers`. Use one of:
|
||||||
|
|
||||||
- `mcp-readonly.json` — safe default profile
|
- `mcp-readonly.json` — safe default profile
|
||||||
- `mcp-trusted-write.json` — explicit trusted profile with write tools enabled
|
- `mcp-trusted-write.json` — explicit trusted profile with Colibri write tools enabled
|
||||||
|
- `mcp-external-call.json` — explicit trusted profile for external MCP tool calls
|
||||||
|
- `external-mcp.sample.json` — example external MCP server registry
|
||||||
|
|
||||||
## Quick checks
|
## Quick checks
|
||||||
|
|
||||||
|
|
@ -20,6 +23,8 @@ Most MCP clients accept a config shaped like `mcpServers`. Use one of:
|
||||||
colibri-mcp tools
|
colibri-mcp tools
|
||||||
COLIBRI_MCP_WRITE=1 colibri-mcp tools
|
COLIBRI_MCP_WRITE=1 colibri-mcp tools
|
||||||
colibri-mcp socket-path
|
colibri-mcp socket-path
|
||||||
|
COLIBRI_MCP_EXTERNAL_CONFIG=/usr/local/share/clawdie-iso/mcp-examples/external-mcp.sample.json \
|
||||||
|
colibri-mcp tools
|
||||||
```
|
```
|
||||||
|
|
||||||
## Claude Code example
|
## Claude Code example
|
||||||
|
|
@ -56,3 +61,34 @@ For a write-capable profile, add:
|
||||||
```
|
```
|
||||||
|
|
||||||
Only enable the write profile for trusted workspaces/sessions.
|
Only enable the write profile for trusted workspaces/sessions.
|
||||||
|
|
||||||
|
## External MCP server prototype
|
||||||
|
|
||||||
|
Newer Colibri builds can also use `colibri-mcp` as a small MCP host/client for
|
||||||
|
other stdio MCP servers. Copy the sample registry into the live config path and
|
||||||
|
edit it for the servers you actually want:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
mdo -u root mkdir -p /usr/local/etc/colibri
|
||||||
|
mdo -u root cp /usr/local/share/clawdie-iso/mcp-examples/external-mcp.sample.json \
|
||||||
|
/usr/local/etc/colibri/external-mcp.json
|
||||||
|
```
|
||||||
|
|
||||||
|
Read-only discovery works by default through these tools:
|
||||||
|
|
||||||
|
- `colibri_external_mcp_servers`
|
||||||
|
- `colibri_external_mcp_list_tools`
|
||||||
|
|
||||||
|
Calling external MCP tools requires an explicit trusted profile:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"command": "/usr/local/bin/colibri-mcp",
|
||||||
|
"args": [],
|
||||||
|
"env": {
|
||||||
|
"COLIBRI_MCP_EXTERNAL_CALL": "1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
External MCP tool calls are intentionally separate from `COLIBRI_MCP_WRITE=1`.
|
||||||
|
|
|
||||||
16
live/operator-session/mcp-examples/external-mcp.sample.json
Normal file
16
live/operator-session/mcp-examples/external-mcp.sample.json
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"servers": {
|
||||||
|
"demo": {
|
||||||
|
"command": "/usr/local/bin/demo-mcp-server",
|
||||||
|
"args": ["--stdio"],
|
||||||
|
"env": {
|
||||||
|
"DEMO_MODE": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"filesystem-example": {
|
||||||
|
"command": "npx",
|
||||||
|
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/clawdie"],
|
||||||
|
"env": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
live/operator-session/mcp-examples/mcp-external-call.json
Normal file
11
live/operator-session/mcp-examples/mcp-external-call.json
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"colibri-external-call": {
|
||||||
|
"command": "/usr/local/bin/colibri-mcp",
|
||||||
|
"args": [],
|
||||||
|
"env": {
|
||||||
|
"COLIBRI_MCP_EXTERNAL_CALL": "1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue