From 18fd9f53385e92155ae6836dec6f6bcc59a2b765 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Mon, 19 May 2025 19:06:52 +0200 Subject: [PATCH] retry smithery config --- README.md | 4 ++++ smithery.yaml | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 smithery.yaml diff --git a/README.md b/README.md index 3783d3e2..d35720be 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[![Install with npm in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=mongodb&inputs=%5B%7B%22id%22%3A%22connection_string%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22MongoDB%20connection%20string%22%2C%22default%22%3A%22mongodb%3A%2F%2Flocalhost%3A27017%22%7D%5D&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22mongodb-mcp-server%22%5D%2C%22env%22%3A%7B%22MDB_MCP_CONNECTION_STRING%22%3A%22%24%7Binput%3Aconnection_string%7D%22%7D%7D) +[![npm downloads](https://img.shields.io/npm/dw/mongodb-mcp-server)](https://www.npmjs.com/package/mongodb-mcp-server) +[![smithery badge](https://smithery.ai/badge/@mongodb-js/mongodb-mcp-server)](https://smithery.ai/server/@mongodb-js/mongodb-mcp-server) + # MongoDB MCP Server A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas. diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 00000000..04c723c0 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,23 @@ +# Smithery.ai configuration +build: + dockerfile: Dockerfile +startCommand: + type: stdio + configSchema: + type: object + properties: + connectionString: + type: string + description: The connection string to use to connect to MongoDB. + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + (config) => ({ + "command": "node", + "args": [ + "dist/index.js" + ], + "env": { + "MDB_MCP_CONNECTION_STRING": config.connectionString + } + })