Repository navigation
Expand file tree
/
Copy pathmcpprobe-report.schema.json
More file actions
118 lines (118 loc) · 5.43 KB
/
Copy pathmcpprobe-report.schema.json
File metadata and controls
118 lines (118 loc) · 5.43 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ShmueLior/mcpprobe/main/docs/mcpprobe-report.schema.json",
"title": "McpProbe JSON report",
"description": "Output of 'mcpprobe lint --format json' and 'mcpprobe diff --format json', and of LintReport.ToJson() and ToolSurfaceDiff.ToJson(). Fields may be added in later versions; formatVersion changes only on a breaking change to this shape.",
"oneOf": [
{ "$ref": "#/$defs/lint" },
{ "$ref": "#/$defs/diff" }
],
"$defs": {
"tool": {
"type": "object",
"additionalProperties": false,
"required": ["name", "version"],
"properties": {
"name": { "const": "McpProbe" },
"version": { "description": "The McpProbe package version, without build metadata.", "type": "string" }
}
},
"result": {
"description": "Whether the command exited 1 (fail) or 0 (pass).",
"enum": ["pass", "fail"]
},
"lint": {
"type": "object",
"additionalProperties": false,
"required": ["formatVersion", "kind", "tool", "result", "summary", "findings"],
"properties": {
"formatVersion": { "const": 1 },
"kind": { "const": "lint" },
"tool": { "$ref": "#/$defs/tool" },
"result": { "$ref": "#/$defs/result" },
"summary": {
"type": "object",
"additionalProperties": false,
"required": ["findings", "error", "warning", "info", "hiddenIgnored", "hiddenBaselined", "unusedIgnore", "staleBaseline", "failOn"],
"properties": {
"findings": { "type": "integer", "minimum": 0 },
"error": { "type": "integer", "minimum": 0 },
"warning": { "type": "integer", "minimum": 0 },
"info": { "type": "integer", "minimum": 0 },
"hiddenIgnored": { "description": "Findings hidden by ignore entries.", "type": "integer", "minimum": 0 },
"hiddenBaselined": { "description": "Findings hidden by the lint baseline.", "type": "integer", "minimum": 0 },
"unusedIgnore": { "description": "Ignore entries that matched nothing.", "type": "integer", "minimum": 0 },
"staleBaseline": { "description": "Lint baseline entries that no longer match.", "type": "integer", "minimum": 0 },
"failOn": { "$ref": "#/$defs/lintSeverity" }
}
},
"findings": {
"description": "The visible findings, most severe first. Hidden findings are only counted in the summary.",
"type": "array",
"items": { "$ref": "#/$defs/finding" }
}
}
},
"lintSeverity": { "enum": ["none", "info", "warning", "error"] },
"finding": {
"type": "object",
"additionalProperties": false,
"required": ["ruleId", "severity", "tool", "message", "failsTheRun"],
"properties": {
"ruleId": { "type": "string", "pattern": "^MCPP[0-9]{3}$" },
"severity": { "enum": ["info", "warning", "error"] },
"tool": { "type": "string" },
"kind": { "description": "The item kind. Omitted for tools; prompt, resource or resourceTemplate otherwise.", "enum": ["tool", "prompt", "resource", "resourceTemplate"] },
"path": { "description": "The parameter or schema path. Omitted for tool-level findings.", "type": "string" },
"message": { "type": "string" },
"failsTheRun": { "type": "boolean" }
}
},
"diff": {
"type": "object",
"additionalProperties": false,
"required": ["formatVersion", "kind", "tool", "result", "summary", "changes"],
"properties": {
"formatVersion": { "const": 1 },
"kind": { "const": "diff" },
"tool": { "$ref": "#/$defs/tool" },
"result": { "$ref": "#/$defs/result" },
"summary": {
"type": "object",
"additionalProperties": false,
"required": ["changes", "breaking", "nonBreaking"],
"properties": {
"changes": { "type": "integer", "minimum": 0 },
"breaking": { "type": "integer", "minimum": 0 },
"nonBreaking": { "type": "integer", "minimum": 0 }
}
},
"changes": {
"description": "Every change, breaking first.",
"type": "array",
"items": { "$ref": "#/$defs/change" }
}
}
},
"change": {
"type": "object",
"additionalProperties": false,
"required": ["tool", "kind", "severity", "message"],
"properties": {
"tool": { "type": "string" },
"path": { "description": "Where in the tool, for example input.city. Omitted for tool-level changes.", "type": "string" },
"kind": {
"enum": [
"tool-added", "tool-removed", "title-changed", "description-changed", "annotations-changed",
"property-added", "property-removed", "became-required", "became-optional", "type-changed",
"enum-changed", "output-schema-added", "output-schema-removed", "keyword-changed", "constraint-changed", "icons-changed"
]
},
"severity": { "enum": ["breaking", "nonBreaking"] },
"message": { "type": "string" },
"before": { "description": "The previous title or description. Only for title-changed and description-changed; omitted when there was none.", "type": "string" },
"after": { "description": "The current title or description. Only for title-changed and description-changed; omitted when there is none.", "type": "string" }
}
}
}
}