claudecode-linter 2.1.148 → 2.1.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claudecode-lint.defaults.yaml +13 -0
- package/README.md +90 -3
- package/contracts/agent-frontmatter.schema.json +141 -1
- package/contracts/command-frontmatter.schema.json +127 -1
- package/contracts/hooks.schema.json +275 -0
- package/contracts/mcp.schema.json +302 -0
- package/contracts/settings.schema.json +285 -2
- package/contracts/skill-frontmatter.schema.json +197 -1
- package/dist/config.js +13 -8
- package/dist/contracts.js +20 -1
- package/dist/formatters/human.js +3 -2
- package/dist/index.js +72 -12
- package/dist/linters/agent-md.js +29 -1
- package/dist/linters/command-md.js +37 -1
- package/dist/linters/hooks-json.js +24 -0
- package/dist/linters/mcp-json.js +24 -0
- package/dist/linters/skill-md.js +41 -0
- package/dist/plugin-schema.js +17 -8
- package/dist/utils/asset-path.js +56 -0
- package/dist/utils/effort.js +29 -0
- package/dist/utils/frontmatter-keys.js +32 -3
- package/dist/utils/frontmatter.js +1 -1
- package/dist/utils/safe-write.js +36 -0
- package/dist/utils/terminal.js +18 -0
- package/package.json +3 -1
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extractedFromClaudeCodeVersion": "2.1.146",
|
|
3
|
+
"extractedAt": "2026-05-22T08:16:43.683Z",
|
|
4
|
+
"schema": {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"title": "Claude Code hooks.json",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"hooks": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"matcher": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "String pattern to match (e.g. tool names like \"Write\")"
|
|
19
|
+
},
|
|
20
|
+
"hooks": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"oneOf": [
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"type": {
|
|
28
|
+
"const": "command",
|
|
29
|
+
"description": "Shell command hook type"
|
|
30
|
+
},
|
|
31
|
+
"command": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Shell command to execute"
|
|
34
|
+
},
|
|
35
|
+
"args": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"description": "Argument list for exec form. When present, `command` is resolved as \"+\"an executable and spawned directly with these arguments \\u2014 no shell. \"+\"Path placeholders like ${CLAUDE_PLUGIN_ROOT} are substituted per-element as plain strings, so paths with quotes, $, or backticks never reach a shell parser. When absent, `command` runs through a shell (bash on POSIX, PowerShell on Windows without Git Bash)."
|
|
41
|
+
},
|
|
42
|
+
"if": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
|
|
45
|
+
},
|
|
46
|
+
"shell": {
|
|
47
|
+
"enum": [
|
|
48
|
+
"bash",
|
|
49
|
+
"powershell"
|
|
50
|
+
],
|
|
51
|
+
"description": "Shell interpreter. 'bash' uses your $SHELL (bash/zsh/sh); 'powershell' uses pwsh. Defaults to bash (powershell on Windows without Git Bash)."
|
|
52
|
+
},
|
|
53
|
+
"timeout": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"description": "Timeout in seconds for this specific command"
|
|
56
|
+
},
|
|
57
|
+
"statusMessage": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Custom status message to display in spinner while hook runs"
|
|
60
|
+
},
|
|
61
|
+
"once": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"description": "If true, hook runs once and is removed after execution"
|
|
64
|
+
},
|
|
65
|
+
"async": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"description": "If true, hook runs in background without blocking"
|
|
68
|
+
},
|
|
69
|
+
"asyncRewake": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "If true, hook runs in background and wakes the model on exit code 2 (blocking error). Implies async."
|
|
72
|
+
},
|
|
73
|
+
"rewakeMessage": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"description": "@internal Custom prefix for the system-reminder shown to the model when an asyncRewake hook exits with code 2. The hook output is appended after this prefix."
|
|
77
|
+
},
|
|
78
|
+
"rewakeSummary": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1,
|
|
81
|
+
"description": "@internal One-line summary shown to the user in the terminal when an asyncRewake hook exits with code 2. Defaults to \"Stop hook feedback\"."
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": [
|
|
85
|
+
"type",
|
|
86
|
+
"command"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"type": {
|
|
93
|
+
"const": "prompt",
|
|
94
|
+
"description": "LLM prompt hook type"
|
|
95
|
+
},
|
|
96
|
+
"prompt": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "Prompt to evaluate with LLM. Use $ARGUMENTS placeholder for hook input JSON."
|
|
99
|
+
},
|
|
100
|
+
"if": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
|
|
103
|
+
},
|
|
104
|
+
"timeout": {
|
|
105
|
+
"type": "number",
|
|
106
|
+
"description": "Timeout in seconds for this specific prompt evaluation"
|
|
107
|
+
},
|
|
108
|
+
"model": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"description": "Model to use for this prompt hook (e.g., \"claude-sonnet-4-6\"). If not specified, uses the default small fast model."
|
|
111
|
+
},
|
|
112
|
+
"continueOnBlock": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"description": "`Sets the continue value for the decision:\"block\" produced when ok is false. Default false (turn ends). Whether continue:true lets the turn proceed depends on the event's decision:\"block\" semantics. On PostToolUse, the reason is fed back to Claude and the turn continues.`"
|
|
115
|
+
},
|
|
116
|
+
"statusMessage": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "Custom status message to display in spinner while hook runs"
|
|
119
|
+
},
|
|
120
|
+
"once": {
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"description": "If true, hook runs once and is removed after execution"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"type",
|
|
127
|
+
"prompt"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"type": {
|
|
134
|
+
"const": "agent",
|
|
135
|
+
"description": "Agentic verifier hook type"
|
|
136
|
+
},
|
|
137
|
+
"prompt": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "Prompt describing what to verify (e.g. \"Verify that unit tests ran and passed.\"). Use $ARGUMENTS placeholder for hook input JSON."
|
|
140
|
+
},
|
|
141
|
+
"if": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
|
|
144
|
+
},
|
|
145
|
+
"timeout": {
|
|
146
|
+
"type": "number",
|
|
147
|
+
"description": "Timeout in seconds for agent execution (default 60)"
|
|
148
|
+
},
|
|
149
|
+
"model": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "Model to use for this agent hook (e.g., \"claude-sonnet-4-6\"). If not specified, uses Haiku."
|
|
152
|
+
},
|
|
153
|
+
"statusMessage": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "Custom status message to display in spinner while hook runs"
|
|
156
|
+
},
|
|
157
|
+
"once": {
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"description": "If true, hook runs once and is removed after execution"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"type",
|
|
164
|
+
"prompt"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "object",
|
|
169
|
+
"properties": {
|
|
170
|
+
"type": {
|
|
171
|
+
"const": "http",
|
|
172
|
+
"description": "HTTP hook type"
|
|
173
|
+
},
|
|
174
|
+
"url": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"format": "uri",
|
|
177
|
+
"description": "URL to POST the hook input JSON to"
|
|
178
|
+
},
|
|
179
|
+
"if": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
|
|
182
|
+
},
|
|
183
|
+
"timeout": {
|
|
184
|
+
"type": "number",
|
|
185
|
+
"description": "Timeout in seconds for this specific request"
|
|
186
|
+
},
|
|
187
|
+
"headers": {
|
|
188
|
+
"type": "object",
|
|
189
|
+
"additionalProperties": {
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"description": "Additional headers to include in the request. Values may reference environment variables using $VAR_NAME or ${VAR_NAME} syntax (e.g., \"Authorization\": \"Bearer $MY_TOKEN\"). Only variables listed in allowedEnvVars will be interpolated."
|
|
193
|
+
},
|
|
194
|
+
"allowedEnvVars": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"description": "Explicit list of environment variable names that may be interpolated in header values. Only variables listed here will be resolved; all other $VAR references are left as empty strings. Required for env var interpolation to work."
|
|
200
|
+
},
|
|
201
|
+
"statusMessage": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"description": "Custom status message to display in spinner while hook runs"
|
|
204
|
+
},
|
|
205
|
+
"once": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"description": "If true, hook runs once and is removed after execution"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": [
|
|
211
|
+
"type",
|
|
212
|
+
"url"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "object",
|
|
217
|
+
"properties": {
|
|
218
|
+
"type": {
|
|
219
|
+
"const": "mcp_tool",
|
|
220
|
+
"description": "MCP tool hook type"
|
|
221
|
+
},
|
|
222
|
+
"server": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"description": "Name of an already-configured MCP server to invoke"
|
|
225
|
+
},
|
|
226
|
+
"tool": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"description": "Name of the tool on that server to call"
|
|
229
|
+
},
|
|
230
|
+
"input": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"additionalProperties": {},
|
|
233
|
+
"description": "Arguments passed to the MCP tool. String values support ${path} interpolation from the hook input JSON (e.g. \"${tool_input.file_path}\")."
|
|
234
|
+
},
|
|
235
|
+
"if": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands."
|
|
238
|
+
},
|
|
239
|
+
"timeout": {
|
|
240
|
+
"type": "number",
|
|
241
|
+
"description": "Timeout in seconds for this specific tool call"
|
|
242
|
+
},
|
|
243
|
+
"statusMessage": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"description": "Custom status message to display in spinner while hook runs"
|
|
246
|
+
},
|
|
247
|
+
"once": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"description": "If true, hook runs once and is removed after execution"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"required": [
|
|
253
|
+
"type",
|
|
254
|
+
"server",
|
|
255
|
+
"tool"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"description": "List of hooks to execute when the matcher matches"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": [
|
|
264
|
+
"hooks"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"required": [
|
|
271
|
+
"hooks"
|
|
272
|
+
],
|
|
273
|
+
"description": "Claude Code hooks/hooks.json. The `hooks` key maps hook-event names (PreToolUse, PostToolUse, …) to arrays of matcher entries, each holding a list of hook definitions (command / prompt / http / agent / mcp_tool). Same shape as the `hooks` block inside settings.json. Validates the structure of known fields; unknown hook fields are not schema errors — the advisory hooks-json hand-written rules report those."
|
|
274
|
+
}
|
|
275
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extractedFromClaudeCodeVersion": "2.1.146",
|
|
3
|
+
"extractedAt": "2026-05-22T08:16:43.683Z",
|
|
4
|
+
"schema": {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"title": "Claude Code .mcp.json",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"mcpServers": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": {
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"type": {
|
|
17
|
+
"const": "stdio"
|
|
18
|
+
},
|
|
19
|
+
"command": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"args": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"default": "[]"
|
|
29
|
+
},
|
|
30
|
+
"env": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"alwaysLoad": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"role": {
|
|
40
|
+
"const": "comms"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"command"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"type": {
|
|
51
|
+
"const": "sse"
|
|
52
|
+
},
|
|
53
|
+
"url": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"headers": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"headersHelper": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"oauth": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"clientId": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"callbackPort": {
|
|
72
|
+
"type": "number"
|
|
73
|
+
},
|
|
74
|
+
"authServerMetadataUrl": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"format": "uri"
|
|
77
|
+
},
|
|
78
|
+
"scopes": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1
|
|
81
|
+
},
|
|
82
|
+
"xaa": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"alwaysLoad": {
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
90
|
+
"role": {
|
|
91
|
+
"const": "comms"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"type",
|
|
96
|
+
"url"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"type": {
|
|
103
|
+
"const": "sse-ide"
|
|
104
|
+
},
|
|
105
|
+
"url": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"ideName": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"ideRunningInWindows": {
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
},
|
|
114
|
+
"alwaysLoad": {
|
|
115
|
+
"type": "boolean"
|
|
116
|
+
},
|
|
117
|
+
"role": {
|
|
118
|
+
"const": "comms"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": [
|
|
122
|
+
"type",
|
|
123
|
+
"url",
|
|
124
|
+
"ideName"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "object",
|
|
129
|
+
"properties": {
|
|
130
|
+
"type": {
|
|
131
|
+
"const": "ws-ide"
|
|
132
|
+
},
|
|
133
|
+
"url": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"ideName": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"authToken": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"ideRunningInWindows": {
|
|
143
|
+
"type": "boolean"
|
|
144
|
+
},
|
|
145
|
+
"alwaysLoad": {
|
|
146
|
+
"type": "boolean"
|
|
147
|
+
},
|
|
148
|
+
"role": {
|
|
149
|
+
"const": "comms"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"type",
|
|
154
|
+
"url",
|
|
155
|
+
"ideName"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"type": "object",
|
|
160
|
+
"properties": {
|
|
161
|
+
"type": {
|
|
162
|
+
"enum": [
|
|
163
|
+
"http",
|
|
164
|
+
"streamable-http"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"url": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"headers": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"additionalProperties": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"headersHelper": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"oauth": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"clientId": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
},
|
|
185
|
+
"callbackPort": {
|
|
186
|
+
"type": "number"
|
|
187
|
+
},
|
|
188
|
+
"authServerMetadataUrl": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"format": "uri"
|
|
191
|
+
},
|
|
192
|
+
"scopes": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"minLength": 1
|
|
195
|
+
},
|
|
196
|
+
"xaa": {
|
|
197
|
+
"type": "boolean"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"alwaysLoad": {
|
|
202
|
+
"type": "boolean"
|
|
203
|
+
},
|
|
204
|
+
"role": {
|
|
205
|
+
"const": "comms"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": [
|
|
209
|
+
"type",
|
|
210
|
+
"url"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"type": "object",
|
|
215
|
+
"properties": {
|
|
216
|
+
"type": {
|
|
217
|
+
"const": "ws"
|
|
218
|
+
},
|
|
219
|
+
"url": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"headers": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"additionalProperties": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"headersHelper": {
|
|
229
|
+
"type": "string"
|
|
230
|
+
},
|
|
231
|
+
"alwaysLoad": {
|
|
232
|
+
"type": "boolean"
|
|
233
|
+
},
|
|
234
|
+
"role": {
|
|
235
|
+
"const": "comms"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"required": [
|
|
239
|
+
"type",
|
|
240
|
+
"url"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "object",
|
|
245
|
+
"properties": {
|
|
246
|
+
"type": {
|
|
247
|
+
"const": "sdk"
|
|
248
|
+
},
|
|
249
|
+
"name": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
"alwaysLoad": {
|
|
253
|
+
"type": "boolean"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"required": [
|
|
257
|
+
"type",
|
|
258
|
+
"name"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"type": {
|
|
265
|
+
"const": "claudeai-proxy"
|
|
266
|
+
},
|
|
267
|
+
"url": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"id": {
|
|
271
|
+
"type": "string"
|
|
272
|
+
},
|
|
273
|
+
"alwaysLoad": {
|
|
274
|
+
"type": "boolean"
|
|
275
|
+
},
|
|
276
|
+
"toolPermissions": {
|
|
277
|
+
"type": "object",
|
|
278
|
+
"additionalProperties": {
|
|
279
|
+
"enum": [
|
|
280
|
+
"allow",
|
|
281
|
+
"ask",
|
|
282
|
+
"blocked"
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": [
|
|
288
|
+
"type",
|
|
289
|
+
"url",
|
|
290
|
+
"id"
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"required": [
|
|
298
|
+
"mcpServers"
|
|
299
|
+
],
|
|
300
|
+
"description": "Claude Code .mcp.json / mcp.json. The single `mcpServers` key maps server names to per-server transport configs (stdio / sse / http / streamable-http / …). Validates the structure of known fields; unknown server fields are not schema errors — the advisory mcp-json/no-unknown-server-fields rule reports those."
|
|
301
|
+
}
|
|
302
|
+
}
|