Repository navigation
Releases
Releases · sachajw/2ndbrain-zotero-mcp-server
v1.1.5 — tool arguments can't inject code; execute_js handles await and rejections
Security
- Tool arguments could run arbitrary code in Zotero's chrome context.
zotero_set_prefescaped only", so the valuex\"); evil(); //ranevil(). Pref keys, thezotero_read_logslevel, and two "Element not found" messages were spliced in unescaped. The MCP SDK doesn't enforceinputSchema, so numeric arguments (windowId,limit,depth,lines,index,scale) could carry code too. All of these are now escaped withJSON.stringifyor validated, andlevel,targetandformatmust be one of their schema values.
Fixed
zotero_execute_jsreported a rejected promise asResult: undefined. It now reports the error with its reason and stack.- Top-level
awaitfailed with "await is only valid in async functions", whether bare or withreturninside a block. Code is now parsed with acorn: code with top-levelawait/returnruns in an async function (its last expression is the result), and other code runs unchanged. zotero_plugin_installbuilt a wrongfile://URL for paths containing a space,#or%.- Removed the unused
awaitPromiseparameter.
Install (not on npm). The server needs the MCP Bridge plugin in Zotero.
{
"mcpServers": {
"zotero-dev": {
"command": "npx",
"args": ["-y", "https://github.com/sachajw/2ndbrain-zotero-mcp-server/releases/download/v1.1.5/sachajw-mcp-server-zotero-dev-1.1.5.tgz"],
"env": { "ZOTERO_RDP_PORT": "6100" }
}
}
}Full notes: CHANGELOG.md.
Plugin v1.0.7 — updates from this repo
First plugin release from this repo. Same bridge code as upstream's 1.0.6, with metadata for this fork.
Changed
update_urlpoints at this repo'supdate.json, so Zotero updates the bridge from here rather than offering upstream releases.authorandhomepage_urlname this fork.- The
.xpiincludesLICENSE(MIT; José Fernandes's copyright line is kept alongside this fork's).
Install: download zotero-mcp-bridge-1.0.7.xpi below, then in Zotero go to Tools → Plugins → ⚙️ → Install Plugin From File, and restart Zotero.
Works with Zotero 7 to 10 (strict_min_version 6.999, strict_max_version 10.0.*).