MCP Server Setup & Configuration
How to connect IsounivLib to an MCP (Model Context Protocol) client, the exposed tool surface, and the security model for sustained worldline interventions.
This page documents how IsounivLib could be connected as an MCP server. It is setup and configuration reference material only. The endpoint values shown are examples and placeholders - they are not live, configured, or connected endpoints. Replace them with the real transport URL and token provided by your deployment before use.
The exposed tools mirror the v1.1 operation pipeline: read the cosmology and telemetry, validate and submit interventions, and audit the intervention log. Every write is validated, idempotent, and gated by human approval where severity requires it.
MCP clients are configured through an mcpServers object. Three transport styles are supported by the MCP spec:
Poke (Shirone) / Lab Connect
Configure the server under the mcpServers key of your Poke / Lab Connect MCP settings. The URL below is a placeholder example.
{
"mcpServers": {
"isounivlib": {
"type": "streamable-http",
"url": "https://isounivlib.cyanide.poke.site/mcp", // EXAMPLE placeholder
"headers": {
"Authorization": "Bearer <YOUR_API_TOKEN>" // replace with real token
}
}
}
}Claude Desktop
Edit claude_desktop_config.json.
{
"mcpServers": {
"isounivlib": {
"command": "npx",
"args": ["-y", "isounivlib-mcp"],
"env": {
"ISounivLib_API_TOKEN": "<YOUR_API_TOKEN>", // EXAMPLE placeholder
"ISounivLib_BASE_URL": "https://isounivlib.cyanide.poke.site" // EXAMPLE
}
}
}
}Cursor
Edit .cursor/mcp.json in your project.
{
"mcpServers": {
"isounivlib": {
"type": "sse",
"url": "https://isounivlib.cyanide.poke.site/mcp/sse", // EXAMPLE placeholder
"headers": {
"Authorization": "Bearer <YOUR_API_TOKEN>" // replace
}
}
}
}Custom client
Any MCP-compatible client accepts the same shape. Use the transport that fits your runtime.
{
"mcpServers": {
"isounivlib": {
"type": "streamable-http", // or "sse" / "stdio"
"url": "https://isounivlib.cyanide.poke.site/mcp", // EXAMPLE placeholder
"headers": {
"Authorization": "Bearer <YOUR_API_TOKEN>"
}
}
}
}Six tools are exposed. Read tools are open; write tools route through the validated operation pipeline.
Fetch the entire cosmology tree, optionally filtered by system or worldline.
Parameters
| Param | Type | Notes |
|---|---|---|
| system_id | string | Optional. Filter to one system, e.g. S0218 |
| worldline | string | Optional. Filter to a worldline timestamp |
| region_id | string | Optional. Fetch a single region |
{
"system_id": "S0218",
"worldline": "P0:S0218:A3:2024:06:17:00:41:22.0002"
}{
"systems": [
{
"id": "S0218",
"name": "Std0218",
"planets": [ { "id": "S0218-IV", "regions": [ { "id": "Hx-Ano-3", "nameCn": "溶洞古校" } ] } ]
}
]
}Query heterogeneity, resonance, stability, and observer state for a worldline.
Parameters
| Param | Type | Notes |
|---|---|---|
| worldline | string | Target worldline timestamp |
| system_id | string | Optional. Filter by system |
| region_id | string | Optional. Fetch a specific region's telemetry |
{
"worldline": "P0:S0218:A3:2024:06:17:01:22:04.0031"
}{
"telemetry": {
"heterogeneity": 78,
"resonance": 64,
"stability": 41,
"observer_state": "CONTAINED",
"sampled_at": "2026-08-26T14:30:00+08:00",
"sampled_worldline": "P0:S0218:A3:2024:06:17:01:22:04.0031"
}
}Submit an operation draft for schema validation, risk check, and impact preview. No write occurs.
Parameters
| Param | Type | Notes |
|---|---|---|
| action | string | Command name or custom.* directive |
| worldline | string | Target worldline timestamp |
| actor | string | Acting entity, e.g. SUSTAINER-07 |
| level | enum | INFO / WARN / CRITICAL / BLOCKER |
| expected_revision | number | Optional. Concurrency control |
| payload | object | Optional. Directive payload |
{
"action": "SURFACE_ROLL_CALL",
"worldline": "P0:S0218:A3:2024:06:17:00:41:22.0002",
"actor": "SUSTAINER-07",
"level": "WARN",
"expected_revision": 1
}{
"valid": true,
"request_id": "req_1724680000_4821",
"state": "validated",
"risk_analysis": { "severity": "low", "requires_approval": true }
}Submit an approved intervention command. Requires an idempotency_key; returns a request_id.
Parameters
| Param | Type | Notes |
|---|---|---|
| action | string | Command name or custom.* directive |
| worldline | string | Target worldline timestamp |
| actor | string | Acting entity |
| level | enum | Severity level |
| idempotency_key | string | Required. Prevents duplicate execution |
| request_id | string | Optional. Client-supplied correlation id |
| requires_approval | boolean | Optional. Force approval gate |
{
"action": "SURFACE_ROLL_CALL",
"worldline": "P0:S0218:A3:2024:06:17:00:41:22.0002",
"actor": "SUSTAINER-07",
"level": "WARN",
"idempotency_key": "key_8f3a91",
"requires_approval": true
}{
"request_id": "op_1724680000_4821",
"idempotency_key": "key_8f3a91",
"status": "accepted",
"state": "approval_required"
}Check the execution status and logs of a submitted operation.
Parameters
| Param | Type | Notes |
|---|---|---|
| request_id | string | Required. The operation request_id |
{
"request_id": "op_1724680000_4821"
}{
"request_id": "op_1724680000_4821",
"state": "applied",
"log": [
{ "state": "queued", "at": "2026-08-26T14:30:00+08:00" },
{ "state": "executing", "at": "2026-08-26T14:30:01+08:00" },
{ "state": "applied", "at": "2026-08-26T14:30:02+08:00" }
]
}Retrieve historical intervention records from intervention_logs.
Parameters
| Param | Type | Notes |
|---|---|---|
| limit | number | Optional. Max records, default 50 |
| actor | string | Optional. Filter by actor |
| action | string | Optional. Filter by action |
| result | string | Optional. Filter by result |
{
"actor": "SUSTAINER-07",
"limit": 10
}{
"interventions": [
{
"log_id": "INT-HX-0042",
"worldline": "P0:S0218:A3:2024:06:17:00:41:22.0002",
"actor": "SUSTAINER-07",
"level": "WARN",
"action": "SURFACE_ROLL_CALL",
"result": "APPROVED"
}
]
}The MCP server authenticates every request with an API token sent as a Bearer header. Access is scoped by role-based clearance levels.
Example authenticated request
{
"mcpServers": {
"isounivlib": {
"type": "streamable-http",
"url": "https://isounivlib.cyanide.poke.site/mcp", // EXAMPLE placeholder
"headers": { "Authorization": "Bearer <YOUR_API_TOKEN>" }
}
}
}Clearance matrix: C1 read-only reference, C2 read + telemetry, C3 read + validate, C4 submit low-severity interventions, C5 approve and execute high-severity interventions.
Custom worldline intervention instructions are packaged as structured MCP parameters under the custom.interference.directive action. The directive body is carried in the payload and validated before execution.
{
"action": "custom.interference.directive",
"worldline": "P0:S0218:A3:2024:06:17:00:41:22.0002",
"actor": "SUSTAINER-07",
"level": "WARN",
"expected_revision": 1,
"payload": {
"directive": "cross-reference roll-call register against guild records",
"scope": "Hx-Ano#3",
"interference": "LOW"
}
}Any action beginning with custom. is routed through the same validated pipeline. The payload must be a structured object; free-form strings are rejected.