# 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: 'node', args: ['build/index.js'], env: { MEM0_API_KEY: config.mem0ApiKey, DEFAULT_USER_ID: config.defaultUserId, DEFAULT_AGENT_ID: config.defaultAgentId, DEFAULT_APP_ID: config.defaultAppId } })
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- mem0ApiKey
- defaultUserId
properties:
mem0ApiKey:
type: string
description: API key for Mem0 cloud storage mode
defaultUserId:
type: string
description: Default user ID for memory operations
defaultAgentId:
type: string
default: ""
description: Default agent ID for identifying the LLM/agent
defaultAppId:
type: string
default: ""
description: Default app ID for project scoping
exampleConfig:
mem0ApiKey: sk-1234567890abcdef
defaultUserId: user123
defaultAgentId: assistant1
defaultAppId: myapp