agentleFS
lricher7329lricher7329/zotero-mcp-claude-code/zotero-mcp-plugin/CLAUDE.md

zotero-mcp-claude-code / zotero-mcp-plugin

CLAUDE.md41 starsChanged 6 months agoMITView on GitHub

A Zotero plugin that provides MCP (Model Context Protocol) server functionality, enabling AI assistants to interact with Zotero's library data. A GitHub Actions workflow at /.github/workflows/release.yml automates releases. Pushing a version tag triggers it.

  • Installs packages
  • Commits and pushes
  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Commit, tag, and push:

    line 49
  2. Distinctive:

    Use ztoolkit.log for logging

    line 82
  3. Distinctive:

    Follow existing patterns in codebase

    line 83
  4. Distinctive:

    Use English for all comments and code documentation

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Zotero MCP Plugin

Project Overview

A Zotero plugin that provides MCP (Model Context Protocol) server functionality, enabling AI assistants to interact with Zotero's library data.

Tech Stack

  • TypeScript
  • Zotero Plugin API (Firefox/Gecko-based)
  • zotero-plugin-scaffold for building
  • SQLite for semantic search index

Compatibility

  • Zotero versions: 7, 8, and 9 (manifest declares strict_min_version: "6.999", strict_max_version: "9.*" in update.json)
  • Runtime: Firefox/Gecko runtime shipped by Zotero. Zotero 7/8 are Firefox 115-era; Zotero 9 uses a newer ESR-era runtime.
  • Platforms: developed/tested on macOS; standard Streamable HTTP MCP so should run anywhere Zotero does, but other platforms not verified by maintainer

Key Directories

  • src/ - TypeScript source code
  • addon/ - Plugin assets (manifest, locales, preferences UI)
  • .scaffold/build/ - Build output
  • update.json - Zotero auto-update manifest

Build Commands

npm run build      # Production build
npm run start      # Development with hot reload
npm run lint:check # Check formatting and linting
npm run lint:fix   # Fix formatting and linting issues

Release Process

A GitHub Actions workflow at /.github/workflows/release.yml automates releases. Pushing a version tag triggers it.

Steps

  1. Bump version in four files:
    • package.json — "version": "X.Y.Z"
    • src/modules/httpServer.ts — export const SERVER_INFO_VERSION = "X.Y.Z" (single source of truth; consumed by streamableMCPServer.ts and /capabilities endpoint)
    • update.json / update-beta.json — regenerate with npm run prepare-release
    • ../README.md — update version badge to X.Y.Z
  2. Update lockfile: npm install --package-lock-only
  3. Verify build: npm run build
  4. Commit, tag, and push:
    git add package.json package-lock.json src/modules/httpServer.ts update.json update-beta.json ../README.md
    git commit -m "chore: bump version to X.Y.Z"
    git tag vX.Y.Z
    git push origin main --tags
  5. GitHub Actions builds the XPI and creates the release with .scaffold/build/zotero-mcp-for-claude-code.xpi and .scaffold/build/update.json as assets. The build-generated update manifest includes the XPI hash and must match the uploaded XPI filename.

Version files summary

FileFieldPurpose
package.jsonversionnpm/build version, used by scaffold
src/modules/httpServer.tsSERVER_INFO_VERSIONSingle source of truth for runtime version; reported in /capabilities, /initialize, /mcp/status
update.jsonupdates[] entryLocal/check-in auto-update manifest generated by npm run prepare-release; release uploads use .scaffold/build/update.json
../README.mdVersion badgeDisplay version in repo README

Important Patterns

Preferences

  • Prefix: extensions.zotero.zotero-mcp-plugin
  • Defined in addon/content/preferences.xhtml
  • Accessed via Zotero.Prefs.get/set

Localization

  • English: addon/locale/en-US/preferences.ftl
  • Chinese: addon/locale/zh-CN/preferences.ftl

Code Style

  • Use ztoolkit.log for logging
  • Follow existing patterns in codebase
  • Use English for all comments and code documentation
  • Chinese locale files in addon/locale/zh-CN/ are for UI translations only
  • Chinese stop word lists in NLP code are functional data and should remain

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.