smithery.yaml•1.27 kB
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required: []
properties:
zoteroLocal:
type: boolean
default: true
description: If true, use the local Zotero API. Otherwise, use web API.
zoteroApiKey:
type: string
description: Your Zotero API key for web API usage.
zoteroLibraryId:
type: string
description: Your Zotero Library ID for web API usage.
zoteroLibraryType:
type: string
default: user
description: Type of Zotero library (e.g., user or group).
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config)=>{const env={}; if(!config.zoteroLocal){if(config.zoteroApiKey){env.ZOTERO_API_KEY=config.zoteroApiKey;} if(config.zoteroLibraryId){env.ZOTERO_LIBRARY_ID=config.zoteroLibraryId;} if(config.zoteroLibraryType){env.ZOTERO_LIBRARY_TYPE=config.zoteroLibraryType;} } else {env.ZOTERO_LOCAL='true';} return {command:'zotero-mcp', args:['serve','--transport','stdio'], env};}
exampleConfig:
zoteroLocal: true