-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-mcp-presets.schema.json
More file actions
79 lines (79 loc) · 2.47 KB
/
git-mcp-presets.schema.json
File metadata and controls
79 lines (79 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/Rethunk-AI/mcp-multi-root-git/main/git-mcp-presets.schema.json",
"title": "rethunk-git MCP preset file",
"description": "Schema for .rethunk/git-mcp-presets.json (at the git repository root). Supports a wrapped layout with an explicit presets object, or a legacy flat map of preset name to entry.",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "JSON Schema $schema pointer for editor validation."
},
"schemaVersion": {
"type": "string",
"const": "1",
"description": "File format version; use 1 for this schema."
},
"presets": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/presetEntry"
},
"description": "Named preset entries for git_inventory / git_parity."
}
},
"required": ["presets"]
},
{
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"schemaVersion": {
"type": "string",
"const": "1",
"description": "Optional file format version when using the flat preset map."
}
},
"additionalProperties": {
"$ref": "#/$defs/presetEntry"
},
"minProperties": 1
}
],
"$defs": {
"presetEntry": {
"type": "object",
"additionalProperties": false,
"properties": {
"nestedRoots": {
"type": "array",
"items": { "type": "string" },
"description": "Paths relative to the git toplevel, in order, for git_inventory."
},
"parityPairs": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"left": { "type": "string" },
"right": { "type": "string" },
"label": { "type": "string" }
},
"required": ["left", "right"]
},
"description": "Path pairs for git_parity (paths relative to git toplevel unless absolute)."
},
"workspaceRootHint": {
"type": "string",
"description": "When multiple MCP file roots exist, restrict preset resolution to a root matching this basename or path suffix."
}
}
}
}
}