-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
219 lines (219 loc) · 14.2 KB
/
Copy pathpackage.json
File metadata and controls
219 lines (219 loc) · 14.2 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
{
"name": "mcp-typescript-simple",
"version": "0.9.1-rc.2",
"description": "A framework for building TypeScript MCP servers",
"main": "packages/example-mcp/dist/index.js",
"type": "module",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"build": "npm run docs:build:homepage && npm run build:packages && npm run build:api",
"build:packages": "npm run build --workspace=packages/config --workspace=packages/observability --workspace=packages/persistence --workspace=packages/testing --workspace=packages/tools --workspace=packages/tools-llm --workspace=packages/auth --workspace=packages/server --workspace=packages/example-tools-basic --workspace=packages/example-tools-llm --workspace=packages/http-server --workspace=packages/example-mcp --workspace=packages/adapter-vercel --workspace=packages/create-mcp-typescript-simple",
"build:api": "tsc",
"build:vercel": "tsc && cp -r api build/",
"clean": "rm -rf packages/*/dist build/ packages/*/tsconfig.tsbuildinfo",
"clean-build": "npm run clean && npm install && npm run build",
"dev:stdio": "NODE_ENV=development MCP_DEV_SKIP_AUTH=true tsx --env-file-if-exists=.env.local --import @mcp-typescript-simple/observability/register packages/example-mcp/src/index.ts",
"dev:http": "concurrently --kill-others \"tsc --build --watch\" \"NODE_ENV=development MCP_MODE=streamable_http MCP_DEV_SKIP_AUTH=true tsx watch --import @mcp-typescript-simple/observability/register packages/example-mcp/src/index.ts packages/*/src\"",
"dev:http:ci": "NODE_ENV=development MCP_MODE=streamable_http MCP_DEV_SKIP_AUTH=true HTTP_PORT=3001 tsx --import @mcp-typescript-simple/observability/register packages/example-mcp/src/index.ts",
"dev:oauth": "concurrently --kill-others \"tsc --build --watch\" \"NODE_ENV=development MCP_MODE=streamable_http tsx watch --import @mcp-typescript-simple/observability/register --env-file=.env.oauth packages/example-mcp/src/index.ts packages/*/src\"",
"dev:otel": "concurrently --kill-others \"tsc --build --watch\" \"NODE_ENV=development MCP_MODE=streamable_http OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 tsx watch --import @mcp-typescript-simple/observability/register --env-file=.env.oauth packages/example-mcp/src/index.ts packages/*/src\"",
"dev:vercel": "vercel dev",
"start": "MCP_MODE=streamable_http node --import ./build/observability/register.js --env-file-if-exists=.env build/index.js",
"run:docker:build": "docker build -t mcp-typescript-simple:latest .",
"run:docker": "docker run --rm -p 3000:3000 --env-file .env.oauth mcp-typescript-simple:latest",
"run:docker:redis:start": "docker run -d --name mcp-redis -p 6379:6379 redis:7-alpine",
"run:docker:redis:stop": "docker stop mcp-redis && docker rm mcp-redis",
"run:docker:with-redis": "npm run run:docker:redis:start && sleep 2 && docker run --rm -p 3000:3000 --env-file .env.oauth -e REDIS_URL=redis://host.docker.internal:6379 --add-host host.docker.internal:host-gateway mcp-typescript-simple:latest",
"deploy:vercel": "vercel --prod",
"test": "npm run test:unit",
"test:unit": "vitest run --coverage",
"test:integration": "vitest run --config vitest.integration.config.ts",
"test:ci": "npm run test:integration",
"test:mcp": "npx tsx tools/manual/test-mcp.ts",
"test:interactive": "npx tsx tools/interactive-client.ts",
"test:dual-mode": "npx tsx examples/test-dual-mode.ts",
"test:vercel-config": "npx tsx packages/example-mcp/test/integration/vercel-config-test.ts",
"test:transport": "npx tsx packages/example-mcp/test/integration/transport-test.ts",
"test:branch-sync": "vitest run packages/example-mcp/test/integration/branch-sync-fast.test.ts",
"test:system": "vitest run --config vitest.system.config.ts",
"test:system:express": "TEST_ENV=express npm run test:system",
"test:system:ci": "HTTP_TEST_PORT=3002 TEST_ENV=express:ci npm run test:system",
"test:system:stdio": "TEST_ENV=stdio npm run test:system",
"test:system:verbose": "SYSTEM_TEST_VERBOSE=true npm run test:system:ci",
"test:system:vercel:local": "TEST_ENV=vercel:local npm run test:system",
"test:system:vercel:preview": "TEST_ENV=vercel:preview npm run test:system",
"test:models": "vitest run --config vitest.system.config.ts packages/example-mcp/test/system/models-validation.system.test.ts",
"test:system:vercel:production": "TEST_ENV=vercel:production npm run test:system",
"test:system:docker": "TEST_ENV=docker npm run test:system",
"test:system:headless": "playwright test",
"test:system:headless:ui": "playwright test --ui",
"test:system:headless:debug": "PWDEBUG=1 playwright test",
"test:all": "npm run test:ci",
"test:openapi:compliance": "vitest run packages/example-mcp/test/integration/openapi-compliance.test.ts",
"test:openapi:coverage": "vitest run packages/example-mcp/test/integration/route-coverage.test.ts",
"test:openapi": "npm run docs:validate && npm run test:openapi:compliance && npm run test:openapi:coverage",
"test:contract": "vitest run --config vitest.contract.config.ts",
"test:contract:local": "HTTP_TEST_PORT=3001 TEST_TARGET=local TEST_ENV=express:ci npm run test:contract",
"test:contract:docker": "TEST_TARGET=docker npm run test:contract",
"test:contract:vercel": "TEST_TARGET=vercel npm run test:contract",
"lint": "eslint 'packages/**/src/**/*.ts' 'packages/**/test/**/*.ts' 'test/**/*.ts' 'tools/**/*.ts' 'tools/**/*.js' --ignore-pattern='**/vitest.config.ts' --ignore-pattern='**/dist/**' --ignore-pattern='**/templates/**' --no-warn-ignored --max-warnings=0",
"duplication-check": "tsx tools/duplication-check.ts",
"typecheck": "tsc --noEmit",
"dev:clean": "npx tsx tools/clean-dev-data.ts",
"dev:clean:sessions": "npx tsx tools/clean-dev-data.ts sessions",
"dev:clean:tokens": "npx tsx tools/clean-dev-data.ts tokens",
"dev:clean:oauth": "npx tsx tools/clean-dev-data.ts clients",
"sync-check": "vibe-validate sync-check",
"pre-commit": "vibe-validate pre-commit",
"post-pr-merge-cleanup": "vibe-validate cleanup",
"otel:start": "docker run -d --name mcp-otel-lgtm -p 3200:3000 -p 4317:4317 -p 4318:4318 --restart unless-stopped grafana/otel-lgtm:latest",
"otel:stop": "docker stop mcp-otel-lgtm && docker rm mcp-otel-lgtm",
"otel:logs": "docker logs -f mcp-otel-lgtm",
"otel:ui": "open http://localhost:3200 || echo 'Open http://localhost:3200 in your browser'",
"otel:restart": "npm run otel:stop && npm run otel:start",
"otel:validate": "echo '✓ Testing Grafana health...' && curl -sf http://localhost:3200/api/health > /dev/null && echo '✓ Grafana is healthy' && echo '✓ Testing OTLP traces endpoint...' && curl -sf -w '%{http_code}' -X POST http://localhost:4318/v1/traces -H 'Content-Type: application/x-protobuf' --data-binary @/dev/null -o /dev/null | grep -qE '^(200|400|415)$' && echo '✓ OTLP endpoint is accepting requests' && echo '✓ All observability services are healthy'",
"dev:with-otel": "npm run otel:start && sleep 10 && npm run dev:http",
"docs:build": "redocly build-docs openapi.yaml -o docs/api-reference.html",
"docs:build:homepage": "npx tsx tools/build-homepage.ts",
"docs:validate": "redocly lint openapi.yaml",
"docs:preview": "redocly preview-docs openapi.yaml",
"docs:bundle": "redocly bundle openapi.yaml -o public/openapi.json",
"security:check": "npm run security:check:admin && npm run security:check:logs && npm run security:check:files",
"security:check:admin": "npx tsx tools/security/check-admin-auth.ts",
"security:check:logs": "npx tsx tools/security/check-secrets-in-logs.ts",
"security:check:files": "npx tsx tools/security/check-file-storage.ts",
"security:check:deps": "npm audit --audit-level=high",
"validate": "vibe-validate validate --yaml",
"validate:generate-workflow": "vibe-validate generate-workflow",
"validate:check-workflow-sync": "vibe-validate generate-workflow --check",
"docker:build": "docker build -t mcp-typescript-simple .",
"docker:run": "docker run --rm -it mcp-typescript-simple",
"docker:dev": "npm run docker:build && npm run docker:run",
"bump-version": "node tools/bump-version.js",
"version:patch": "node tools/bump-version.js patch",
"version:minor": "node tools/bump-version.js minor",
"version:major": "node tools/bump-version.js major",
"prepare-publish": "node tools/prepare-packages-for-publish.js",
"pre-publish": "node tools/pre-publish-check.js",
"verify-npm-packages": "node tools/verify-npm-packages.js",
"validate:wildcards": "node tools/validate-wildcards.js",
"validate:wildcards:fix": "node tools/validate-wildcards.js --fix",
"publish:automated": "node tools/publish-with-cleanup.js",
"publish:automated:dry-run": "node tools/publish-with-cleanup.js --dry-run",
"publish:dry-run": "npm -ws --if-present exec npm publish --dry-run --tag next",
"publish:config": "cd packages/config && npm publish --no-git-checks --tag next",
"publish:observability": "cd packages/observability && npm publish --no-git-checks --tag next",
"publish:testing": "cd packages/testing && npm publish --no-git-checks --tag next",
"publish:persistence": "cd packages/persistence && npm publish --no-git-checks --tag next",
"publish:tools": "cd packages/tools && npm publish --no-git-checks --tag next",
"publish:tools-llm": "cd packages/tools-llm && npm publish --no-git-checks --tag next",
"publish:auth": "cd packages/auth && npm publish --no-git-checks --tag next",
"publish:server": "cd packages/server && npm publish --no-git-checks --tag next",
"publish:http-server": "cd packages/http-server && npm publish --no-git-checks --tag next",
"publish:example-tools-basic": "cd packages/example-tools-basic && npm publish --no-git-checks --tag next",
"publish:example-tools-llm": "cd packages/example-tools-llm && npm publish --no-git-checks --tag next",
"publish:example-mcp": "cd packages/example-mcp && npm publish --no-git-checks --tag next",
"publish:adapter-vercel": "cd packages/adapter-vercel && npm publish --no-git-checks --tag next",
"publish:create": "cd packages/create-mcp-typescript-simple && npm publish --no-git-checks --tag next",
"publish:all": "npm run pre-publish && npm run prepare-publish && npm run publish:config && npm run publish:observability && npm run publish:testing && npm run publish:persistence && npm run publish:tools && npm run publish:tools-llm && npm run publish:auth && npm run publish:server && npm run publish:http-server && npm run publish:example-tools-basic && npm run publish:example-tools-llm && npm run publish:example-mcp && npm run publish:adapter-vercel && npm run publish:create && git checkout -- packages/*/package.json",
"release:rc": "npm run build && git add -A && git commit -m 'chore: Release candidate' && npm run tag:create",
"release:patch": "npm run version:patch && npm run build && git add -A && git commit -m 'chore: Release patch version' && npm run tag:create",
"release:minor": "npm run version:minor && npm run build && git add -A && git commit -m 'chore: Release minor version' && npm run tag:create",
"release:major": "npm run version:major && npm run build && git add -A && git commit -m 'chore: Release major version' && npm run tag:create",
"tag:create": "node -e \"const pkg = require('./packages/example-mcp/package.json'); const tag = 'v' + pkg.version; require('child_process').execSync('git tag -a ' + tag + ' -m \\\"Release ' + tag + '\\\"', {stdio: 'inherit'});\"",
"postinstall": "node tools/build-workspaces.js",
"prepare": "husky || true"
},
"keywords": [
"mcp",
"typescript",
"server"
],
"author": "Jeff Dutton",
"license": "MIT",
"engines": {
"node": ">=22.0.0",
"npm": ">=10.0.0"
},
"overrides": {
"js-yaml": ">=4.1.1"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.63.0",
"@google/generative-ai": "^0.24.1",
"@mcp-typescript-simple/auth": "*",
"@mcp-typescript-simple/config": "*",
"@mcp-typescript-simple/example-mcp": "*",
"@mcp-typescript-simple/example-tools-basic": "*",
"@mcp-typescript-simple/example-tools-llm": "*",
"@mcp-typescript-simple/observability": "*",
"@mcp-typescript-simple/persistence": "*",
"@mcp-typescript-simple/server": "*",
"@mcp-typescript-simple/testing": "*",
"@mcp-typescript-simple/tools": "*",
"@mcp-typescript-simple/tools-llm": "*",
"@modelcontextprotocol/sdk": "^1.18.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.64.1",
"@opentelemetry/exporter-logs-otlp-http": "^0.205.0",
"@opentelemetry/instrumentation": "^0.205.0",
"@opentelemetry/resources": "^2.1.0",
"@opentelemetry/sdk-node": "^0.205.0",
"@opentelemetry/semantic-conventions": "^1.37.0",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.3",
"@vercel/otel": "^2.0.0",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"axios": "^1.7.7",
"cors": "^2.8.5",
"express": "^5.1.0",
"express-openapi-validator": "^5.6.0",
"google-auth-library": "^10.3.0",
"helmet": "^8.1.0",
"ioredis": "^5.8.0",
"openai": "^5.21.0",
"pino": "^9.12.0",
"pino-opentelemetry-transport": "^1.1.0",
"pino-pretty": "^13.1.1",
"swagger-ui-express": "^5.0.1",
"yaml": "^2.8.1",
"zod": "^3.25.76"
},
"devDependencies": {
"@modelcontextprotocol/inspector": "^0.17.0",
"@playwright/test": "^1.56.0",
"@redocly/cli": "^2.2.2",
"@types/nock": "^10.0.3",
"@types/node": "^24.5.2",
"@types/supertest": "^6.0.3",
"@types/swagger-ui-express": "^4.1.8",
"@typescript-eslint/eslint-plugin": "^8.44.0",
"@typescript-eslint/parser": "^8.44.0",
"@vercel/node": "^5.3.23",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"concurrently": "^9.2.1",
"eslint": "^9.35.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-n": "^17.23.1",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-sonarjs": "^3.0.5",
"eslint-plugin-unicorn": "^62.0.0",
"husky": "^9.1.7",
"ioredis-mock": "^8.13.0",
"jscpd": "^4.0.5",
"nock": "^14.0.10",
"oauth2-mock-server": "^8.1.0",
"playwright": "^1.56.0",
"supertest": "^7.1.4",
"tsx": "^4.20.5",
"typescript": "^5.9.2",
"vercel": "^48.1.0",
"vibe-validate": "^0.18.1",
"vitest": "^3.2.4"
}
}