feat: establish read-only DocForge MCP foundation
This commit is contained in:
commit
9702ed1265
32 changed files with 3323 additions and 0 deletions
36
schemas/result.schema.json
Normal file
36
schemas/result.schema.json
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://docforge.local/schema/result-v1.json",
|
||||
"title": "DocForge result envelope",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["status", "project_id", "source_hash"],
|
||||
"properties": {
|
||||
"status": { "const": "ok" },
|
||||
"project_id": { "type": "string" },
|
||||
"revision": { "type": "string" },
|
||||
"source_hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
||||
"adapter": { "type": "string" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["status", "error"],
|
||||
"properties": {
|
||||
"status": { "const": "error" },
|
||||
"error": {
|
||||
"type": "object",
|
||||
"required": ["code", "message", "details"],
|
||||
"properties": {
|
||||
"code": { "type": "string", "minLength": 1 },
|
||||
"message": { "type": "string", "minLength": 1 },
|
||||
"details": { "type": "object" }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue