Skip to content

Commit f13e846

Browse files
authored
add smithery yaml (#45)
* add smithery yaml * make access mode required
1 parent 7a955d9 commit f13e846

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

smithery.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- databaseUri
10+
- accessMode
11+
properties:
12+
databaseUri:
13+
type: string
14+
description: URI for accessing the database, e.g., postgres://user:password@host:port/database.
15+
accessMode:
16+
type: string
17+
description: The access mode for the MCP, e.g., "restricted" or "unrestricted".
18+
commandFunction:
19+
# A function that produces the CLI command to start the MCP on stdio.
20+
|-
21+
(config) => ({command: '/app/docker-entrypoint.sh', args: ['postgres-mcp', '--access-mode',config.accessMode], env: {DATABASE_URI: config.databaseUri}})

0 commit comments

Comments
 (0)