forked from modelcontextprotocol/modelcontextprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 3.04 KB
/
package.json
File metadata and controls
68 lines (68 loc) · 3.04 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
{
"name": "@modelcontextprotocol/specification",
"private": true,
"version": "0.1.0",
"description": "Model Context Protocol specification and protocol schema",
"license": "SEE LICENSE IN LICENSE",
"author": "Model Context Protocol a Series of LF Projects, LLC. (https://modelcontextprotocol.io)",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/specification/issues",
"engines": {
"node": ">=20,<25"
},
"prettier": {
"overrides": [
{
"files": "*.{md,mdx}",
"options": {
"proseWrap": "preserve"
}
}
]
},
"scripts": {
"generate": "npm run generate:schema && npm run generate:seps",
"generate:schema": "npm run generate:schema:json & npm run generate:schema:md & wait",
"generate:schema:json": "tsx scripts/generate-schemas.ts",
"generate:schema:md": "find schema/*/schema.mdx -print0 | xargs -0 -P 0 -I {} sh -c 'f=\"{}\"; typedoc --entryPoints \"${f%.mdx}.ts\" --schemaPageTemplate \"$f\" > docs/specification/$(basename -- $(dirname -- \"$f\"))/schema.mdx'",
"generate:seps": "tsx scripts/render-seps.ts",
"format": "npm run format:docs && npm run format:schema",
"format:docs": "prettier --write \"**/*.{md,mdx}\" --ignore-path .prettierignore",
"format:schema": "prettier --write \"schema/**/*.ts\"",
"check": "npm run check:schema && npm run check:docs && npm run check:seps",
"check:schema": "npm run check:schema:ts && npm run check:schema:json && npm run check:schema:examples && npm run check:schema:md",
"check:schema:ts": "tsc --noEmit && eslint schema/ && prettier --check \"schema/**/*.ts\"",
"check:schema:json": "tsx scripts/generate-schemas.ts --check",
"check:schema:examples": "tsx scripts/validate-examples.ts",
"check:schema:md": "for f in schema/*/schema.mdx; do typedoc --entryPoints \"${f%.mdx}.ts\" --schemaPageTemplate \"$f\" | cmp docs/specification/$(basename -- $(dirname -- \"$f\"))/schema.mdx - || exit 1; done",
"check:docs": "npm run check:docs:format && npm run check:docs:js-comments && npm run check:docs:links",
"check:docs:format": "prettier --check \"**/*.{md,mdx}\"",
"check:docs:js-comments": "tsx scripts/check-mdx-comments.ts",
"check:docs:links": "cd docs && npx mint broken-links",
"check:seps": "tsx scripts/render-seps.ts --check",
"serve:docs": "cd docs && npx mint dev",
"serve:blog": "cd blog && hugo serve",
"prep": "npm run check:schema:ts && npm run generate && npm run check:docs && npm run format"
},
"devDependencies": {
"@eslint/js": "^9.8.0",
"ajv": "^8.18.0",
"ajv-formats": "^3.0.1",
"cheerio": "^1.2.0",
"eslint": "^9.8.0",
"eslint-config-prettier": "^10.1.8",
"glob": "^13.0.6",
"prettier": "^3.6.2",
"remark-mdx": "^3.1.1",
"remark-parse": "^11.0.0",
"tsx": "^4.21.0",
"typedoc": "^0.28.17",
"typescript": "^5.6.2",
"typescript-eslint": "^8.56.0",
"typescript-json-schema": "^0.65.1",
"unified": "^11.0.5"
},
"resolutions": {
"fast-json-patch": "^3.1.1"
}
}