forked from 54yyyu/zotero-mcp
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsmithery.yaml
More file actions
29 lines (28 loc) · 1.24 KB
/
Copy pathsmithery.yaml
File metadata and controls
29 lines (28 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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