Skip to content

Commit 20965d1

Browse files
Add Smithery configuration
1 parent 76cb0d7 commit 20965d1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

smithery.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Smithery configuration file: https://smithery.ai/docs/build/project-config
2+
3+
build:
4+
dockerfile: Dockerfile
5+
dockerBuildPath: ../
6+
startCommand:
7+
type: stdio
8+
configSchema:
9+
# JSON Schema defining the configuration options for the MCP.
10+
type: object
11+
properties:
12+
connectionString:
13+
type: string
14+
description: The connection string to use to connect to MongoDB.
15+
commandFunction:
16+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
17+
|-
18+
(config) => ({
19+
"command": "node",
20+
"args": [
21+
"dist/index.js"
22+
],
23+
"env": {
24+
"MDB_MCP_CONNECTION_STRING": config.connectionString
25+
}
26+
})

0 commit comments

Comments
 (0)