Add Dockerfiles for the 17 sample MCP servers
* add Dockerfiles and update README.md definitions
This commit is contained in:
parent
ea35591902
commit
368e3b23ca
3 changed files with 913 additions and 43 deletions
18
src/gdrive/Dockerfile
Normal file
18
src/gdrive/Dockerfile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
FROM node:22.12-alpine as builder
|
||||
|
||||
COPY src/gdrive /app
|
||||
COPY tsconfig.json /tsconfig.json
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN --mount=type=cache,target=/root/.npm npm install
|
||||
|
||||
FROM node:22-alpine AS release
|
||||
|
||||
COPY --from=builder /app/dist /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["node", "dist/index.js"]
|
||||
|
|
@ -49,6 +49,21 @@ To authenticate and save credentials:
|
|||
|
||||
To integrate this server with the desktop app, add the following to your app's server configuration:
|
||||
|
||||
#### Docker
|
||||
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"gdrive": {
|
||||
"command": "docker",
|
||||
"args": ["run", "-i", "--rm", "ai/mcp-gdrive"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### NPX
|
||||
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
"googleapis": "^144.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.9.3",
|
||||
"@types/node": "^22",
|
||||
"shx": "^0.3.4",
|
||||
"typescript": "^5.6.2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue