mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 00:54:03 +02:00
* Adding dynamic resources
* Add server/index.js
- import registerResources from resources/index.js
- in createServer()
- call registerResources, passing server
* Add resources/dynamic.ts
- in addDynamicResources()
- define formatGmtTimestamp to create a time stamp to include in the resource text or encoded blob
- define parseIndex to ensure the index variable of the URI is a number
* Add resources/index.ts
- import addDynamicResources
- export registerResources function
- in registerResources()
- call addDynamicResources
* In package.json
- update the start commands to launch each of the transports properly
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"name": "@modelcontextprotocol/server-everything",
|
|
"version": "0.6.2",
|
|
"description": "MCP server that exercises all the features of the MCP protocol",
|
|
"license": "MIT",
|
|
"mcpName": "io.github.modelcontextprotocol/server-everything",
|
|
"author": "Anthropic, PBC (https://anthropic.com)",
|
|
"homepage": "https://modelcontextprotocol.io",
|
|
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/modelcontextprotocol/servers.git"
|
|
},
|
|
"type": "module",
|
|
"bin": {
|
|
"mcp-server-everything": "dist/index.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc && shx cp instructions.md dist/ && shx chmod +x dist/*.js",
|
|
"prepare": "npm run build",
|
|
"watch": "tsc --watch",
|
|
"start:stdio": "node dist/index.js stdio",
|
|
"start:sse": "node dist/index.js sse",
|
|
"start:streamableHttp": "node dist/index.js streamableHttp"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
"cors": "^2.8.5",
|
|
"express": "^5.2.1",
|
|
"jszip": "^3.10.1",
|
|
"zod": "^3.25.0",
|
|
"zod-to-json-schema": "^3.23.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.19",
|
|
"@types/express": "^5.0.6",
|
|
"shx": "^0.3.4",
|
|
"typescript": "^5.6.2"
|
|
}
|
|
}
|