mcplane 0.4.1 → 0.5.0
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/CHANGELOG.md +27 -0
- package/README.md +108 -18
- package/dist/agent-plugins.d.ts +6 -0
- package/dist/agent-plugins.js +76 -0
- package/dist/cdp.d.ts +49 -0
- package/dist/cdp.js +253 -0
- package/dist/checks/ard.d.ts +67 -0
- package/dist/checks/ard.js +215 -0
- package/dist/checks/auth.js +2 -1
- package/dist/checks/chain.d.ts +45 -0
- package/dist/checks/chain.js +171 -0
- package/dist/checks/listing.js +23 -14
- package/dist/checks/oauth.d.ts +45 -0
- package/dist/checks/oauth.js +64 -0
- package/dist/checks/readiness.d.ts +58 -0
- package/dist/checks/readiness.js +230 -0
- package/dist/checks/tools.js +38 -7
- package/dist/checks/vercel.d.ts +27 -0
- package/dist/checks/vercel.js +153 -0
- package/dist/cli.js +54 -6
- package/dist/core.d.ts +1 -0
- package/dist/core.js +20 -4
- package/dist/demo.d.ts +60 -0
- package/dist/demo.js +573 -0
- package/dist/drift.js +10 -3
- package/dist/evals.d.ts +34 -0
- package/dist/evals.js +75 -0
- package/dist/extras.js +1 -1
- package/dist/images.d.ts +21 -0
- package/dist/images.js +99 -0
- package/dist/listings.d.ts +14 -0
- package/dist/listings.js +39 -0
- package/dist/mcp-client.d.ts +1 -5
- package/dist/mcp-client.js +8 -1
- package/dist/mcp-server.js +21 -11
- package/dist/packs.d.ts +48 -18
- package/dist/packs.js +380 -90
- package/dist/report.js +30 -13
- package/dist/skills.d.ts +21 -0
- package/dist/skills.js +180 -0
- package/dist/submissions.js +2 -1
- package/dist/types.d.ts +37 -4
- package/dist/types.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/video.d.ts +58 -0
- package/dist/video.js +190 -0
- package/dist/zip.d.ts +16 -2
- package/dist/zip.js +65 -5
- package/package.json +4 -1
- package/schema.json +86 -12
- package/schemas/agent-plugins-1.0.0/LICENSE +202 -0
- package/schemas/agent-plugins-1.0.0/mcp.schema.json +120 -0
- package/schemas/agent-plugins-1.0.0/plugin.schema.json +65 -0
package/dist/zip.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A minimal ZIP writer (deflate, no dependencies): enough to build the plugin
|
|
3
|
-
* package ChatGPT's submission portal takes.
|
|
3
|
+
* package ChatGPT's submission portal takes, and a reader to check it.
|
|
4
|
+
*
|
|
5
|
+
* Every entry is dated 1980-01-01 00:00, the first valid DOS date (an all-zero
|
|
6
|
+
* date has month 0, which some readers reject), so the same files always give
|
|
7
|
+
* the same bytes. Entries carry Unix modes, so a script marked executable stays
|
|
8
|
+
* executable when the package is unpacked.
|
|
4
9
|
*/
|
|
5
|
-
import { deflateRawSync } from 'node:zlib';
|
|
10
|
+
import { deflateRawSync, inflateRawSync } from 'node:zlib';
|
|
6
11
|
const CRC = (() => {
|
|
7
12
|
const t = new Uint32Array(256);
|
|
8
13
|
for (let n = 0; n < 256; n++) {
|
|
@@ -19,6 +24,13 @@ function crc32(buf) {
|
|
|
19
24
|
c = CRC[(c ^ b) & 0xff] ^ (c >>> 8);
|
|
20
25
|
return (c ^ 0xffffffff) >>> 0;
|
|
21
26
|
}
|
|
27
|
+
/** 1980-01-01 00:00 in DOS format: (year - 1980) << 9 | month << 5 | day. */
|
|
28
|
+
export const DOS_DATE = (0 << 9) | (1 << 5) | 1;
|
|
29
|
+
const DOS_TIME = 0;
|
|
30
|
+
const UTF8 = 0x0800;
|
|
31
|
+
/** "Version made by": Unix (3), ZIP 2.0, so readers apply the modes in the external attributes. */
|
|
32
|
+
const MADE_BY_UNIX = (3 << 8) | 20;
|
|
33
|
+
const REGULAR_FILE = 0o100000;
|
|
22
34
|
export function zip(files) {
|
|
23
35
|
const enc = new TextEncoder();
|
|
24
36
|
const locals = [];
|
|
@@ -33,8 +45,10 @@ export function zip(files) {
|
|
|
33
45
|
const lv = new DataView(local.buffer);
|
|
34
46
|
lv.setUint32(0, 0x04034b50, true);
|
|
35
47
|
lv.setUint16(4, 20, true);
|
|
36
|
-
lv.setUint16(6,
|
|
48
|
+
lv.setUint16(6, UTF8, true);
|
|
37
49
|
lv.setUint16(8, 8, true); // deflate
|
|
50
|
+
lv.setUint16(10, DOS_TIME, true);
|
|
51
|
+
lv.setUint16(12, DOS_DATE, true);
|
|
38
52
|
lv.setUint32(14, crc, true);
|
|
39
53
|
lv.setUint32(18, body.length, true);
|
|
40
54
|
lv.setUint32(22, raw.length, true);
|
|
@@ -43,14 +57,17 @@ export function zip(files) {
|
|
|
43
57
|
const cen = new Uint8Array(46 + name.length);
|
|
44
58
|
const cv = new DataView(cen.buffer);
|
|
45
59
|
cv.setUint32(0, 0x02014b50, true);
|
|
46
|
-
cv.setUint16(4,
|
|
60
|
+
cv.setUint16(4, MADE_BY_UNIX, true);
|
|
47
61
|
cv.setUint16(6, 20, true);
|
|
48
|
-
cv.setUint16(8,
|
|
62
|
+
cv.setUint16(8, UTF8, true);
|
|
49
63
|
cv.setUint16(10, 8, true);
|
|
64
|
+
cv.setUint16(12, DOS_TIME, true);
|
|
65
|
+
cv.setUint16(14, DOS_DATE, true);
|
|
50
66
|
cv.setUint32(16, crc, true);
|
|
51
67
|
cv.setUint32(20, body.length, true);
|
|
52
68
|
cv.setUint32(24, raw.length, true);
|
|
53
69
|
cv.setUint16(28, name.length, true);
|
|
70
|
+
cv.setUint32(38, ((REGULAR_FILE | ((f.mode ?? 0o644) & 0o777)) << 16) >>> 0, true);
|
|
54
71
|
cv.setUint32(42, offset, true);
|
|
55
72
|
cen.set(name, 46);
|
|
56
73
|
locals.push(local, body);
|
|
@@ -73,3 +90,46 @@ export function zip(files) {
|
|
|
73
90
|
}
|
|
74
91
|
return out;
|
|
75
92
|
}
|
|
93
|
+
/** Reads every entry from the central directory, inflating and checking each CRC. */
|
|
94
|
+
export function unzip(buf) {
|
|
95
|
+
const v = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
96
|
+
let eocd = -1;
|
|
97
|
+
for (let i = buf.length - 22; i >= Math.max(0, buf.length - 65_557); i--) {
|
|
98
|
+
if (v.getUint32(i, true) === 0x06054b50) {
|
|
99
|
+
eocd = i;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (eocd < 0)
|
|
104
|
+
throw new Error('not a ZIP: no end of central directory');
|
|
105
|
+
const count = v.getUint16(eocd + 10, true);
|
|
106
|
+
let p = v.getUint32(eocd + 16, true);
|
|
107
|
+
const dec = new TextDecoder();
|
|
108
|
+
const out = [];
|
|
109
|
+
for (let i = 0; i < count; i++) {
|
|
110
|
+
if (v.getUint32(p, true) !== 0x02014b50)
|
|
111
|
+
throw new Error(`bad central directory entry ${i}`);
|
|
112
|
+
const madeBy = v.getUint16(p + 4, true);
|
|
113
|
+
const method = v.getUint16(p + 10, true);
|
|
114
|
+
const dosDate = v.getUint16(p + 14, true);
|
|
115
|
+
const crc = v.getUint32(p + 16, true);
|
|
116
|
+
const csize = v.getUint32(p + 20, true);
|
|
117
|
+
const usize = v.getUint32(p + 24, true);
|
|
118
|
+
const nlen = v.getUint16(p + 28, true);
|
|
119
|
+
const xlen = v.getUint16(p + 30, true);
|
|
120
|
+
const clen = v.getUint16(p + 32, true);
|
|
121
|
+
const attrs = v.getUint32(p + 38, true);
|
|
122
|
+
const at = v.getUint32(p + 42, true);
|
|
123
|
+
const path = dec.decode(buf.subarray(p + 46, p + 46 + nlen));
|
|
124
|
+
const start = at + 30 + v.getUint16(at + 26, true) + v.getUint16(at + 28, true);
|
|
125
|
+
const body = buf.subarray(start, start + csize);
|
|
126
|
+
const data = method === 8 ? new Uint8Array(inflateRawSync(body)) : method === 0 ? body.slice() : null;
|
|
127
|
+
if (!data)
|
|
128
|
+
throw new Error(`${path}: unsupported compression method ${method}`);
|
|
129
|
+
if (data.length !== usize || crc32(data) !== crc)
|
|
130
|
+
throw new Error(`${path}: CRC or size mismatch`);
|
|
131
|
+
out.push({ path, data, mode: madeBy >> 8 === 3 ? (attrs >>> 16) & 0o777 : null, dosDate });
|
|
132
|
+
p += 46 + nlen + xlen + clen;
|
|
133
|
+
}
|
|
134
|
+
return out;
|
|
135
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcplane",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "fastlane for MCP servers: preflight against every store's rejection causes, publish where you can, prepare the rest, track every review.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
+
"schemas",
|
|
11
12
|
"schema.json",
|
|
12
13
|
"README.md",
|
|
14
|
+
"CHANGELOG.md",
|
|
13
15
|
"LICENSE"
|
|
14
16
|
],
|
|
15
17
|
"engines": {
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
},
|
|
42
44
|
"dependencies": {
|
|
43
45
|
"@modelcontextprotocol/sdk": "^1.31.0",
|
|
46
|
+
"ajv": "^8.17.1",
|
|
44
47
|
"zod": "^4.6.5"
|
|
45
48
|
},
|
|
46
49
|
"repository": {
|
package/schema.json
CHANGED
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"cline",
|
|
27
27
|
"lobehub",
|
|
28
28
|
"awesome-mcp-servers",
|
|
29
|
-
"awesome-remote-mcp-servers"
|
|
29
|
+
"awesome-remote-mcp-servers",
|
|
30
|
+
"vercel-connect"
|
|
30
31
|
]
|
|
31
32
|
},
|
|
32
33
|
"url": {
|
|
@@ -80,6 +81,13 @@
|
|
|
80
81
|
"none",
|
|
81
82
|
"oauth"
|
|
82
83
|
]
|
|
84
|
+
},
|
|
85
|
+
"signIn": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"$ref": "#/$defs/url"
|
|
89
|
+
},
|
|
90
|
+
"description": "Sign-in pages and identity-provider URLs your consent screen sends people to. Preflight GETs them, with the authorization endpoint, to find bot challenges and 403s reviewers would hit."
|
|
83
91
|
}
|
|
84
92
|
}
|
|
85
93
|
},
|
|
@@ -124,8 +132,8 @@
|
|
|
124
132
|
}
|
|
125
133
|
},
|
|
126
134
|
"icon": {
|
|
127
|
-
"
|
|
128
|
-
"description": "A direct link to a square PNG, 512px or larger. Not a page, not a favicon."
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "A direct link to a square PNG, 512px or larger. Not a page, not a favicon. The ChatGPT package also takes a local path, relative to mcplane.json; other stores need the link."
|
|
129
137
|
},
|
|
130
138
|
"prompts": {
|
|
131
139
|
"type": "array",
|
|
@@ -200,22 +208,20 @@
|
|
|
200
208
|
},
|
|
201
209
|
"justifications": {
|
|
202
210
|
"type": "object",
|
|
203
|
-
"
|
|
211
|
+
"deprecated": true,
|
|
212
|
+
"description": "Deprecated: OpenAI no longer asks for hint justifications. Still accepted; the ChatGPT pack lists them as optional notes for an appeal if review flags a hint.",
|
|
204
213
|
"additionalProperties": {
|
|
205
214
|
"type": "object",
|
|
206
215
|
"additionalProperties": false,
|
|
207
216
|
"properties": {
|
|
208
217
|
"readOnly": {
|
|
209
|
-
"type": "string"
|
|
210
|
-
"maxLength": 200
|
|
218
|
+
"type": "string"
|
|
211
219
|
},
|
|
212
220
|
"openWorld": {
|
|
213
|
-
"type": "string"
|
|
214
|
-
"maxLength": 200
|
|
221
|
+
"type": "string"
|
|
215
222
|
},
|
|
216
223
|
"destructive": {
|
|
217
|
-
"type": "string"
|
|
218
|
-
"maxLength": 200
|
|
224
|
+
"type": "string"
|
|
219
225
|
}
|
|
220
226
|
}
|
|
221
227
|
}
|
|
@@ -266,6 +272,54 @@
|
|
|
266
272
|
}
|
|
267
273
|
}
|
|
268
274
|
},
|
|
275
|
+
"vercelConnect": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"additionalProperties": false,
|
|
278
|
+
"description": "Vercel Connect's Submit a Service fields with no shared equivalent.",
|
|
279
|
+
"properties": {
|
|
280
|
+
"apiBase": {
|
|
281
|
+
"$ref": "#/$defs/url",
|
|
282
|
+
"description": "Base URL of a REST API your users also call, listed as a second target."
|
|
283
|
+
},
|
|
284
|
+
"scopes": {
|
|
285
|
+
"type": "array",
|
|
286
|
+
"items": {
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"description": "Default scopes for the OAuth method. Defaults to the discovery document's scopes_supported."
|
|
290
|
+
},
|
|
291
|
+
"apiKey": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"additionalProperties": false,
|
|
294
|
+
"description": "Offer an API key connection method.",
|
|
295
|
+
"properties": {
|
|
296
|
+
"docs": {
|
|
297
|
+
"$ref": "#/$defs/url",
|
|
298
|
+
"description": "Where users create a key."
|
|
299
|
+
},
|
|
300
|
+
"header": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "How the key is sent, e.g. \"x-api-key: <key>\". Defaults to Authorization: Bearer <key>."
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"claudePlugin": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"additionalProperties": false,
|
|
311
|
+
"description": "The Claude Code plugin that ships this server, for \"mcplane pack claude-eval\". Read from the plugin repo when left out.",
|
|
312
|
+
"properties": {
|
|
313
|
+
"name": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "The plugin's name in its plugin.json."
|
|
316
|
+
},
|
|
317
|
+
"server": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "The server's key in the plugin's .mcp.json (or plugin.json mcpServers)."
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
269
323
|
"lanes": {
|
|
270
324
|
"type": "object",
|
|
271
325
|
"description": "Named workflows run with \"mcplane <lane>\". Each step is a command without \"mcplane\"; prefix \"?\" for optional, \"handoff:\" for a step only a person can do.",
|
|
@@ -339,11 +393,31 @@
|
|
|
339
393
|
"description": "#RRGGBB with 2:1 contrast against #212121.",
|
|
340
394
|
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
341
395
|
},
|
|
396
|
+
"logo": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"description": "The package's logo: an image URL or a local path relative to mcplane.json. Defaults to icon."
|
|
399
|
+
},
|
|
342
400
|
"composerIcon": {
|
|
343
|
-
"
|
|
401
|
+
"type": "string",
|
|
402
|
+
"description": "An image URL or a local path. Defaults to the logo."
|
|
344
403
|
},
|
|
345
404
|
"logoDark": {
|
|
346
|
-
"
|
|
405
|
+
"type": "string",
|
|
406
|
+
"description": "An image URL or a local path, for dark mode."
|
|
407
|
+
},
|
|
408
|
+
"skills": {
|
|
409
|
+
"description": "Agent Skills to bundle under skills/ in the package: a folder whose subfolders each hold a SKILL.md, or a list of skill folders. Relative to mcplane.json.",
|
|
410
|
+
"oneOf": [
|
|
411
|
+
{
|
|
412
|
+
"type": "string"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"type": "array",
|
|
416
|
+
"items": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
]
|
|
347
421
|
},
|
|
348
422
|
"demoVideo": {
|
|
349
423
|
"$ref": "#/$defs/url",
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
|
|
4
|
+
"title": "Agent Plugins MCP Configuration",
|
|
5
|
+
"description": "Machine-readable schema for mcp.json in Agent Plugins 1.0.0. The Agent Plugins specification defines additional semantic and operational requirements.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"const": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
|
|
10
|
+
"description": "Canonical identifier of the MCP configuration schema for the Agent Plugins version targeted by this document."
|
|
11
|
+
},
|
|
12
|
+
"mcpServers": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": {
|
|
15
|
+
"$ref": "#/$defs/server"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": ["$schema", "mcpServers"],
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"$defs": {
|
|
22
|
+
"server": {
|
|
23
|
+
"title": "MCP server",
|
|
24
|
+
"oneOf": [
|
|
25
|
+
{
|
|
26
|
+
"$ref": "#/$defs/stdioServer"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"$ref": "#/$defs/streamableHttpServer"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$ref": "#/$defs/sseServer"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"stdioServer": {
|
|
37
|
+
"title": "stdio MCP server",
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"type": {
|
|
41
|
+
"const": "stdio"
|
|
42
|
+
},
|
|
43
|
+
"command": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1,
|
|
46
|
+
"description": "Executable token. Resolution rules are defined by the Agent Plugins specification."
|
|
47
|
+
},
|
|
48
|
+
"args": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"env": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"propertyNames": {
|
|
57
|
+
"not": {
|
|
58
|
+
"enum": ["PLUGIN_ROOT", "PLUGIN_DATA"]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"cwd": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"pattern": "^(?:\\./|\\$\\{PLUGIN_ROOT\\}(?:/|$)|\\$\\{PLUGIN_DATA\\}(?:/|$))",
|
|
68
|
+
"description": "Plugin-relative, PLUGIN_ROOT-rooted, or PLUGIN_DATA-rooted working directory. Filesystem containment is validated separately."
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": ["type", "command"],
|
|
72
|
+
"additionalProperties": false
|
|
73
|
+
},
|
|
74
|
+
"streamableHttpServer": {
|
|
75
|
+
"title": "Streamable HTTP MCP server",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"type": {
|
|
79
|
+
"const": "streamable-http"
|
|
80
|
+
},
|
|
81
|
+
"url": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1,
|
|
84
|
+
"description": "MCP endpoint URL. URL semantics are defined by the Agent Plugins specification."
|
|
85
|
+
},
|
|
86
|
+
"headers": {
|
|
87
|
+
"$ref": "#/$defs/headers"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": ["type", "url"],
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
},
|
|
93
|
+
"sseServer": {
|
|
94
|
+
"title": "Legacy HTTP+SSE MCP server",
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"type": {
|
|
98
|
+
"const": "sse"
|
|
99
|
+
},
|
|
100
|
+
"url": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"minLength": 1,
|
|
103
|
+
"description": "MCP endpoint URL. URL semantics are defined by the Agent Plugins specification."
|
|
104
|
+
},
|
|
105
|
+
"headers": {
|
|
106
|
+
"$ref": "#/$defs/headers"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": ["type", "url"],
|
|
110
|
+
"additionalProperties": false
|
|
111
|
+
},
|
|
112
|
+
"headers": {
|
|
113
|
+
"title": "HTTP headers",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"additionalProperties": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
4
|
+
"title": "Agent Plugins Manifest",
|
|
5
|
+
"description": "Machine-readable schema for plugin.json in Agent Plugins 1.0.0. The Agent Plugins specification defines additional semantic and operational requirements.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"const": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
10
|
+
"description": "Canonical identifier of the plugin manifest schema for the Agent Plugins version targeted by this document."
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"maxLength": 64,
|
|
16
|
+
"pattern": "^(?!.*(?:--|\\.\\.))[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$",
|
|
17
|
+
"description": "Human-readable plugin name."
|
|
18
|
+
},
|
|
19
|
+
"version": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"description": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"author": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"email": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"url": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
"homepage": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"license": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"keywords": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"extensions": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"description": "Client-specific manifest data keyed by reverse-domain extension namespace. Agent Plugins assigns no semantics to namespace object contents.",
|
|
58
|
+
"additionalProperties": {
|
|
59
|
+
"type": "object"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": ["$schema", "name"],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|