Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"mcp": {
"servers": {
"docs": {
"requestSeconds": 60
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mcp": { "servers": { "docs": { "command": "docs-mcp", "restart": 1 } } }
}
154 changes: 153 additions & 1 deletion src/schemas/json/crucible-code-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@
"description": "Settings for the extension itself, in whatever names its own documentation gives. Read only from the configuration file in your home directory",
"type": "object"
},
"digest": {
"description": "The manifest digest this extension was agreed to at, as --extensions prints it. Read only from the configuration file in your home directory",
"type": "string"
},
"enabled": {
"default": false,
"description": "Whether crucible may run this extension. Read only from the configuration file in your home directory",
"description": "Whether crucible may run this extension. Not enough on its own: `digest` says which program was agreed to. Read only from the configuration file in your home directory",
"type": "boolean"
}
},
Expand Down Expand Up @@ -147,6 +151,154 @@
},
"type": "object"
},
"mcp": {
"additionalProperties": false,
"description": "MCP servers crucible may be asked to start",
"properties": {
"$schema": {
"type": "string"
},
"$comment": {
"type": "string"
},
"servers": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"$comment": {
"type": "string"
},
"args": {
"description": "What to pass the program, one argument per element, applied verbatim. Read only from the configuration file in your home directory",
"items": {
"examples": ["-y", "@example/docs-mcp"],
"type": "string"
},
"type": "array"
},
"command": {
"description": "The program to run for this server. An absolute path, or a bare program name for PATH to answer. Read only from the configuration file in your home directory",
"examples": [
"npx",
"/usr/local/bin/docs-mcp",
"C:\\Program Files\\docs-mcp\\docs-mcp.exe"
],
"type": "string"
},
"directory": {
"description": "An absolute path to start the program in. Left off, the directory crucible was started in. Read only from the configuration file in your home directory",
"type": "string"
},
"env": {
"additionalProperties": {
"type": "string"
},
"description": "Environment variables for this server, applied verbatim — values, so nothing secret belongs here. Read only from the configuration file in your home directory",
"properties": {
"$schema": {
"type": "string"
},
"$comment": {
"type": "string"
}
},
"propertyNames": {
"anyOf": [
{
"pattern": "^[^$]"
},
{
"enum": ["$schema", "$comment"]
}
]
},
"type": "object"
},
"envFrom": {
"additionalProperties": {
"type": "string"
},
"description": "Environment variables for this server taken from crucible's own, keyed by the name the server reads and holding the name crucible reads — names, never secrets. Read only from the configuration file in your home directory",
"properties": {
"$schema": {
"type": "string"
},
"$comment": {
"type": "string"
}
},
"propertyNames": {
"anyOf": [
{
"pattern": "^[^$]"
},
{
"enum": ["$schema", "$comment"]
}
]
},
"type": "object"
},
"handshakeSeconds": {
"default": 10,
"description": "How long to wait for the server to agree a protocol version before giving up on it. Read only from the configuration file in your home directory",
"minimum": 0,
"type": "integer"
},
"requestSeconds": {
"default": 60,
"description": "How long to wait for one request to this server before giving up on it. Read only from the configuration file in your home directory",
"minimum": 0,
"type": "integer"
},
"required": {
"default": false,
"description": "Whether a run that selected this server fails when it cannot be prepared, rather than carrying on without its tools. Read only from the configuration file in your home directory",
"type": "boolean"
},
"restarts": {
"default": 0,
"description": "How many times this server may be started again after it ends. Read only from the configuration file in your home directory",
"minimum": 0,
"type": "integer"
},
"shutdownSeconds": {
"default": 5,
"description": "How long the server is given to stop on its own before it is killed. Read only from the configuration file in your home directory",
"minimum": 0,
"type": "integer"
}
},
"required": ["command"],
"type": "object"
},
"description": "MCP servers that may be selected, keyed by the identifier their tools are qualified by. Nothing is started by being written here",
"properties": {
"$schema": {
"type": "string"
},
"$comment": {
"type": "string"
}
},
"propertyNames": {
"anyOf": [
{
"pattern": "^[^$]"
},
{
"enum": ["$schema", "$comment"]
}
]
},
"type": "object"
}
},
"type": "object"
},
"output": {
"additionalProperties": false,
"description": "What the terminal shows",
Expand Down
20 changes: 20 additions & 0 deletions src/test/crucible-code-schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@
"input": {
"send": "altEnter"
},
"mcp": {
"servers": {
"docs": {
"args": ["--catalogue", "public"],
"command": "docs-mcp",
"directory": "/home/you/src/docs",
"env": {
"DOCS_LOCALE": "en"
},
"envFrom": {
"DOCS_TOKEN": "MY_DOCS_TOKEN"
},
"handshakeSeconds": 10,
"requestSeconds": 60,
"required": true,
"restarts": 1,
"shutdownSeconds": 5
}
}
},
"output": {
"color": "auto",
"glyphs": "unicode",
Expand Down
Loading