Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Smithery.ai configuration
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
properties:
httpServer:
Expand All @@ -12,22 +14,16 @@ startCommand:
description: Port number for HTTP server
default: 3000
additionalProperties: false

commandFunction: |
function(config) {
const args = [];
const env = {};

if (config.httpServer) {
env.HTTP_SERVER = 'true';
if (config.port) {
env.PORT = config.port.toString();
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({
"command": "node",
"args": [
"dist/index.js"
],
"env": {
...(config.httpServer ? { HTTP_SERVER: "true" } : {}),
...(config.port ? { PORT: config.port.toString() } : {})
}
}

return {
command: 'node',
args: ['dist/index.js'],
env: env
};
}
})