-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathserver-definition.schema.json
More file actions
299 lines (299 loc) · 8.73 KB
/
Copy pathserver-definition.schema.json
File metadata and controls
299 lines (299 loc) · 8.73 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://mcpmux.com/schemas/server-definition.json",
"title": "MCP Server Definition (Contributor Schema)",
"description": "Contributor-provided server definition for McpMux Registry. Platform-managed fields (badges, hosting_type, verification, sponsored) are computed by the bundler and stored separately in _platform.",
"type": "object",
"required": ["id", "name", "transport"],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9]+\\.[a-z0-9][a-z0-9-]*$",
"description": "Unique identifier: {tld}.{publisher}-{name} (e.g., com.cloudflare-docs, community.linear). One publisher can have multiple servers."
},
"name": {
"type": "string",
"minLength": 1,
"description": "Human-readable display name"
},
"alias": {
"type": "string",
"pattern": "^[a-z0-9-]+$",
"description": "Short alias for CLI usage"
},
"description": {
"type": "string",
"description": "Short description of what the server does"
},
"icon": {
"type": "string",
"description": "Emoji or URL to icon image"
},
"schema_version": {
"type": "string",
"description": "Schema version this definition conforms to"
},
"transport": {
"$ref": "#/$defs/transport"
},
"auth": {
"$ref": "#/$defs/auth"
},
"categories": {
"type": "array",
"items": { "type": "string" },
"description": "Array of category IDs"
},
"tags": {
"type": "array",
"items": { "type": "string" },
"description": "Searchable tags"
},
"contributor": {
"$ref": "#/$defs/contributor"
},
"links": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"format": "uri",
"description": "Source code repository URL"
},
"homepage": {
"type": "string",
"format": "uri",
"description": "Project homepage URL"
},
"documentation": {
"type": "string",
"format": "uri",
"description": "Documentation URL"
}
}
},
"platforms": {
"type": "array",
"items": {
"enum": ["all", "windows", "macos", "linux"]
},
"description": "Supported platforms"
},
"capabilities": {
"type": "object",
"properties": {
"tools": { "type": "boolean" },
"resources": { "type": "boolean" },
"prompts": { "type": "boolean" },
"read_only_mode": {
"type": "boolean",
"default": false,
"description": "Server supports read-only operation (no write/destructive actions)"
}
},
"description": "MCP capabilities supported"
},
"media": {
"type": "object",
"properties": {
"screenshots": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"maxItems": 5,
"default": [],
"description": "Screenshot URLs for visual preview"
},
"demo_video": {
"type": "string",
"format": "uri",
"description": "Demo video URL (YouTube, Vimeo, etc.)"
},
"banner": {
"type": "string",
"format": "uri",
"description": "Banner image for featured display (recommended: 1200x400px)"
}
},
"description": "Rich media content for better discovery and user experience"
},
"changelog_url": {
"type": "string",
"format": "uri",
"description": "URL to changelog or release notes"
}
},
"$defs": {
"transport": {
"type": "object",
"required": ["type"],
"oneOf": [
{
"properties": {
"type": { "const": "stdio" },
"command": {
"type": "string",
"minLength": 1,
"description": "Command to execute"
},
"args": {
"type": "array",
"items": { "type": "string" },
"description": "Command arguments"
},
"env": {
"type": "object",
"additionalProperties": { "type": "string" },
"description": "Environment variables"
},
"cwd": {
"type": "string",
"description": "Working directory for command execution"
},
"metadata": {
"$ref": "#/$defs/metadata"
}
},
"required": ["type", "command"],
"additionalProperties": false
},
{
"properties": {
"type": { "const": "http" },
"url": {
"type": "string",
"format": "uri",
"description": "HTTP endpoint URL (supports Streamable HTTP)"
},
"metadata": {
"$ref": "#/$defs/metadata"
}
},
"required": ["type", "url"],
"additionalProperties": false
}
]
},
"metadata": {
"type": "object",
"properties": {
"inputs": {
"type": "array",
"items": { "$ref": "#/$defs/input" },
"description": "User inputs required for this server"
}
}
},
"input": {
"type": "object",
"required": ["id", "label"],
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Z0-9_]+$",
"description": "Uppercase identifier (e.g., API_KEY)"
},
"label": {
"type": "string",
"description": "Human-readable label"
},
"type": {
"enum": ["text", "number", "boolean", "url", "select", "file_path", "directory_path"],
"default": "text",
"description": "Input field type"
},
"required": {
"type": "boolean",
"default": false,
"description": "Whether this input is required"
},
"secret": {
"type": "boolean",
"default": false,
"description": "Whether this input contains sensitive data"
},
"description": {
"type": "string",
"description": "Help text for this input"
},
"default": {
"type": "string",
"description": "Default value for this input (used when user provides no value)"
},
"placeholder": {
"type": "string",
"description": "Placeholder text"
},
"obtain": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "URL where user can obtain this value"
},
"instructions": {
"type": "string",
"description": "Step-by-step instructions"
},
"button_label": {
"type": "string",
"description": "Button label for obtain link"
}
},
"description": "Instructions for obtaining this input value"
},
"options": {
"type": "array",
"items": {
"type": "object",
"required": ["value", "label"],
"properties": {
"value": { "type": "string", "description": "Option value" },
"label": { "type": "string", "description": "Display label" },
"description": { "type": "string", "description": "Optional description" }
},
"additionalProperties": false
},
"description": "Predefined options for select input type"
}
},
"additionalProperties": false
},
"auth": {
"type": "object",
"required": ["type"],
"properties": {
"type": {
"enum": ["none", "api_key", "optional_api_key", "oauth", "basic"],
"description": "Authentication type: none (no auth), api_key (required), optional_api_key (enhanced if provided), oauth, basic"
},
"instructions": {
"type": "string",
"description": "Human-readable authentication instructions"
}
}
},
"contributor": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Contributor display name or GitHub username"
},
"github": {
"type": "string",
"description": "GitHub username (without @)"
},
"url": {
"type": "string",
"format": "uri",
"description": "Contributor website or profile URL"
}
},
"description": "Person or org who contributed this server definition to the registry"
}
}
}