smithery.yaml•1.27 kB
# Smithery configuration file: https://smithery.ai/docs/build/project-config
startCommand:
type: stdio
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({
command: 'mcp-victoriametrics',
args: [],
env: {
VM_INSTANCE_ENTRYPOINT: config.vmInstanceEntrypoint,
VM_INSTANCE_TYPE: config.vmInstanceType,
...(config.vmInstanceBearerToken ? {VM_INSTANCE_BEARER_TOKEN: config.vmInstanceBearerToken} : {}),
}
})
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- vmInstanceEntrypoint
- vmInstanceType
properties:
vmInstanceEntrypoint:
type: string
description: URL to VictoriaMetrics instance
vmInstanceType:
type: string
enum: [cluster, single]
description: Type of VictoriaMetrics instance (cluster/single)
vmInstanceBearerToken:
type: string
default: ""
description: Authentication token for VictoriaMetrics API
exampleConfig:
vmInstanceEntrypoint: https://play.victoriametrics.com
vmInstanceType: cluster
vmInstanceBearerToken: <YOUR_TOKEN_HERE>