Skip to content

Commit

Permalink
Create package for each server
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Nov 19, 2024
1 parent 0223f11 commit 3044d81
Show file tree
Hide file tree
Showing 13 changed files with 770 additions and 1,205 deletions.
1,714 changes: 554 additions & 1,160 deletions package-lock.json

Large diffs are not rendered by default.

57 changes: 15 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,25 @@
{
"name": "@modelcontextprotocol/example-servers",
"version": "0.3.0",
"description": "Example Model Context Protocol servers",
"name": "@modelcontextprotocol/servers",
"version": "0.1.0",
"description": "Model Context Protocol servers",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.github.io",
"bugs": "https://github.com/modelcontextprotocol/example-servers/issues",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
"type": "module",
"bin": {
"mcp-server-everything": "build/everything/index.js",
"mcp-server-gdrive": "build/gdrive/index.js",
"mcp-server-giphy": "build/giphy/index.js",
"mcp-server-hubspot": "build/hubspot/index.js",
"mcp-server-osascript": "build/osascript/index.js",
"mcp-server-postgres": "build/postgres/index.js",
"mcp-server-puppeteer": "build/puppeteer/index.js",
"mcp-server-spotify": "build/spotify/index.js",
"mcp-server-tee": "build/tee/index.js"
},
"files": [
"build"
"workspaces": [
"src/*"
],
"files": [],
"scripts": {
"build": "tsc && shx chmod +x build/*/*.js",
"prepare": "npm run build",
"watch": "tsc --watch"
},
"devDependencies": {
"@types/express": "^5.0.0",
"shx": "^0.3.4",
"tsx": "^4.19.1",
"typescript": "^5.6.2"
"build": "npm run build --workspaces",
"watch": "npm run watch --workspaces"
},
"dependencies": {
"@modelcontextprotocol/sdk": "0.5.0",
"express": "^4.21.1",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.23.5"
},
"optionalDependencies": {
"@google-cloud/local-auth": "^3.0.1",
"@hubspot/api-client": "^12.0.1",
"@spotify/web-api-ts-sdk": "^1.2.0",
"@types/pg": "^8.11.10",
"dotenv": "^16.4.5",
"googleapis": "^144.0.0",
"node-fetch": "^3.3.2",
"pg": "^8.13.0",
"puppeteer": "^23.4.0"
"@modelcontextprotocol/server-everything": "*",
"@modelcontextprotocol/server-gdrive": "*",
"@modelcontextprotocol/server-postgres": "*",
"@modelcontextprotocol/server-puppeteer": "*",
"@modelcontextprotocol/server-slack": "*"
}
}
32 changes: 32 additions & 0 deletions src/everything/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "@modelcontextprotocol/server-everything",
"version": "0.1.0",
"description": "MCP server that exercises all the features of the MCP protocol",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
"type": "module",
"bin": {
"mcp-server-everything": "dist/index.js"
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && shx chmod +x dist/*.js",
"prepare": "npm run build",
"watch": "tsc --watch"
},
"dependencies": {
"@modelcontextprotocol/sdk": "0.5.0",
"express": "^4.21.1",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.23.5"
},
"devDependencies": {
"@types/express": "^5.0.0",
"shx": "^0.3.4",
"typescript": "^5.6.2"
}
}
10 changes: 10 additions & 0 deletions src/everything/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": [
"./**/*.ts"
]
}
30 changes: 30 additions & 0 deletions src/gdrive/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@modelcontextprotocol/server-gdrive",
"version": "0.1.0",
"description": "MCP server for interacting with Google Drive",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
"type": "module",
"bin": {
"mcp-server-gdrive": "dist/index.js"
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && shx chmod +x dist/*.js",
"prepare": "npm run build",
"watch": "tsc --watch"
},
"dependencies": {
"@google-cloud/local-auth": "^3.0.1",
"@modelcontextprotocol/sdk": "0.5.0",
"googleapis": "^144.0.0"
},
"devDependencies": {
"shx": "^0.3.4",
"typescript": "^5.6.2"
}
}
10 changes: 10 additions & 0 deletions src/gdrive/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": [
"./**/*.ts"
]
}
30 changes: 30 additions & 0 deletions src/postgres/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@modelcontextprotocol/server-postgres",
"version": "0.1.0",
"description": "MCP server for interacting with PostgreSQL databases",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
"type": "module",
"bin": {
"mcp-server-postgres": "dist/index.js"
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && shx chmod +x dist/*.js",
"prepare": "npm run build",
"watch": "tsc --watch"
},
"dependencies": {
"@modelcontextprotocol/sdk": "0.5.0",
"pg": "^8.13.0"
},
"devDependencies": {
"@types/pg": "^8.11.10",
"shx": "^0.3.4",
"typescript": "^5.6.2"
}
}
10 changes: 10 additions & 0 deletions src/postgres/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": [
"./**/*.ts"
]
}
29 changes: 29 additions & 0 deletions src/puppeteer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "@modelcontextprotocol/server-puppeteer",
"version": "0.1.0",
"description": "MCP server for browser automation using Puppeteer",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
"type": "module",
"bin": {
"mcp-server-puppeteer": "dist/index.js"
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && shx chmod +x dist/*.js",
"prepare": "npm run build",
"watch": "tsc --watch"
},
"dependencies": {
"@modelcontextprotocol/sdk": "0.5.0",
"puppeteer": "^23.4.0"
},
"devDependencies": {
"shx": "^0.3.4",
"typescript": "^5.6.2"
}
}
10 changes: 10 additions & 0 deletions src/puppeteer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": [
"./**/*.ts"
]
}
28 changes: 28 additions & 0 deletions src/slack/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "@modelcontextprotocol/server-slack",
"version": "0.1.0",
"description": "MCP server for interacting with Slack",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
"type": "module",
"bin": {
"mcp-server-slack": "dist/index.js"
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && shx chmod +x dist/*.js",
"prepare": "npm run build",
"watch": "tsc --watch"
},
"dependencies": {
"@modelcontextprotocol/sdk": "0.5.0"
},
"devDependencies": {
"shx": "^0.3.4",
"typescript": "^5.6.2"
}
}
11 changes: 11 additions & 0 deletions src/slack/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": [
"./**/*.ts"
]
}

4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"target": "ES2022",
"module": "Node16",
"moduleResolution": "Node16",
"outDir": "./build",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "packages", "**/*.spec.ts"]
"exclude": ["node_modules"]
}

0 comments on commit 3044d81

Please sign in to comment.