Repository navigation
Description
Problem
Sequant has three distribution mechanisms, but only one works end-to-end:
| Path | Status | What works | What's broken |
|---|---|---|---|
npm install + sequant init |
✅ Complete | CLI, MCP server, skills, hooks, config | — |
| Plugin install | Skills load, hooks load | No MCP server, no config, no prerequisites check, stale marketplace build | |
| MCP server only | ✅ Complete | sequant_status, sequant_run, sequant_logs |
No skills (by design) |
The plugin should be a first-class alternate path where installing the plugin gives users both the interactive skills AND the MCP tools with zero additional configuration. Today, plugin users get skills but lose the MCP server, state configuration, and setup assurance that npm users get.
Acceptance Criteria
1. Plugin bundles MCP server (P0)
- Plugin
.mcp.jsonat plugin root launches the sequant MCP server automatically when the plugin is enabled - MCP server config uses
npx sequant@latest serve(nottsx bin/cli.tswith hardcoded cwd) - Plugin users get
sequant_status,sequant_run,sequant_logstools andsequant://state,sequant://configresources without any manual MCP setup - Server starts via stdio transport (default, most compatible)
Target .mcp.json (at plugin root, NOT inside .claude-plugin/):
{
"sequant": {
"command": "npx",
"args": ["-y", "sequant@latest", "serve"]
}
}Note: npx -y avoids install prompts. No cwd needed since the MCP server reads project context from the working directory Claude Code provides.
2. Plugin manifest follows best practices (P0)
-
plugin.jsononly contains metadata fields (name, description, version, author, homepage, repository, license, keywords) — NO component path overrides (Claude Code auto-discovers from default directories) - No
"hooks"field inplugin.json— Claude Code v2.1+ auto-loadshooks/hooks.json; explicitly declaring it causes duplicate detection errors - Validate with
claude plugin validate .passes clean
Current plugin.json is fine as-is — just verify no component path fields have been added.
3. Setup skill bridges the config gap (P1)
The /sequant:setup skill is the plugin user's equivalent of sequant init. It currently only creates worktrees + constitution. Extend it to also:
- Check prerequisites:
git,gh auth status, Node.js 20+ (for MCP servernpx) - Create
.sequant/directory with defaultsettings.json(quality loop config, default base branch) - Detect package manager and store
PM_RUNtoken (used by/exec,/spec) - Detect dev server URL from stack (or prompt user) and store
DEV_URL(used by/test) - Create
.sequant-manifest.jsonwith version + stack info - Print summary showing what was configured + which MCP tools are now available
- Clearly indicate "You're all set — run
/assess <issue>to start"
The setup skill should NOT duplicate sequant init logic — it should be lightweight and Claude-Code-native (shell commands, not TypeScript). It fills the same role for plugin users that init fills for npm users.
4. Marketplace build includes MCP config (P1)
-
scripts/prepare-marketplace.tscopies.mcp.jsonto output directory - Validate step checks
.mcp.jsonexists in output -
dist/marketplace/output version matchespackage.json(currently stale at 1.17.0 vs 1.20.3) - Add
npm run prepare:marketplaceto release workflow so dist/ is never stale
5. Self-hosted marketplace.json is correct (P1)
Current .claude-plugin/marketplace.json uses:
{ "source": "./" }This assumes the marketplace repo IS the plugin repo (monorepo style). Verify this is correct for the sequant-io/sequant GitHub repo layout, or update to:
{ "source": { "source": "github", "repo": "sequant-io/sequant", "ref": "v1.20.3" } }- Decide: is the sequant GitHub repo itself the marketplace, or is there a separate marketplace repo?
- If self-hosted in same repo,
"source": "./"is correct - If separate marketplace repo, use
"source": { "source": "github", ... }format - Pin
refto release tags, not branches, for stability
6. Official marketplace submission (P2)
-
scripts/prepare-marketplace.tsoutput matchesexternal_plugins/<name>/structure expected byanthropics/claude-plugins-official - README in output has comprehensive feature list, installation, prerequisites, and skill table
- Submit to official directory via https://clau.de/plugin-directory-submission or https://claude.ai/settings/plugins/submit
- Category:
workflow
7. Plugin CI validates the full package (P1)
.github/workflows/plugin-install-test.yml currently has "does this command even exist?" guards around every claude plugin command. Now that the system is GA:
- Remove fallback guards —
claude plugin validateexists, use it directly - Add
.mcp.jsonvalidation (exists, valid JSON, usesnpxnot hardcoded paths) - Add version sync check between
package.json,plugin.json,marketplace.json, AND thedist/marketplace/output - Test that
claude --plugin-dir .loads the plugin successfully (loads skills, hooks, MCP config)
8. Hook scripts use portable paths (P2)
Current hooks hardcode /tmp/ for logs:
TIMING_LOG="/tmp/claude-timing.log"
QUALITY_LOG="/tmp/claude-quality.log"- Replace with
${TMPDIR:-/tmp}for macOS/Linux portability - Consider using
${CLAUDE_PLUGIN_DATA}/logs/for persistent log storage that survives plugin updates - Ensure
md5/md5sumfallback works (already has this, just verify)
9. Documentation covers both paths (P2)
- README.md has two clear installation paths: npm (power users/CI) vs plugin (interactive users)
- Plugin README (generated by
prepare-marketplace.ts) includes: prerequisites, what you get (skills + MCP tools), quick start, and link to full docs - Each skill's SKILL.md works for both plugin users (
${CLAUDE_PLUGIN_ROOT}) and npm users ($CLAUDE_PROJECT_DIR)
10. Remove dev-only .mcp.json from repo root (P0)
The current .mcp.json at repo root has a hardcoded path to /Users/tony/Projects/sequant and uses tsx bin/cli.ts (source, not dist). This is:
-
Developer-only (
.gitignorealready excludes it based on??status) -
Conflicts with the plugin
.mcp.jsonthat needs to be at the root for distribution -
Add
.mcp.jsonto.gitignore(it's already untracked, make it explicit) -
Create plugin-distribution
.mcp.jsonat root that usesnpx sequant@latest serve -
sequant initshould create.mcp.jsonin the TARGET project, not in the sequant repo itself
Design Notes
Plugin .mcp.json (for distribution)
{
"sequant": {
"command": "npx",
"args": ["-y", "sequant@latest", "serve"]
}
}This works because:
- Claude Code starts MCP servers with the project directory as cwd
npx -yauto-installs without prompting- The MCP server reads
.sequant/config from cwd (project root) - No hardcoded paths needed
User journey after plugin install
1. /plugin install sequant@sequant-io/sequant
→ Skills loaded (17 slash commands)
→ Hooks loaded (pre-tool, post-tool guardrails)
→ MCP server auto-starts (sequant_status, sequant_run, sequant_logs)
2. /sequant:setup
→ Checks git, gh, node prerequisites
→ Creates .sequant/ config directory
→ Detects stack & package manager
→ Creates worktrees directory
→ Copies constitution template
3. /assess 123
→ Full workflow available
What stays npm-only
sequant runCLI (headless CI mode)sequant init(full interactive setup wizard)sequant doctor(diagnostics)sequant statusCLI- TypeScript library exports
These are power-user/CI features. Plugin users get the equivalent through MCP tools + skills.
Out of Scope
- Converting the MCP server from
npxto a bundled${CLAUDE_PLUGIN_ROOT}/server.js— would require shipping compiled JS in the plugin, adding complexity.npxis the right pattern for command-based MCP servers (matches official plugins like context7). - Windows support for hook scripts — tracked separately if needed.
- Auto-update mechanism — third-party marketplaces already handle this via
autoUpdate: truein user settings.
Activity
admarble commentedon Mar 27, 2026
Spec Plan — #476 Plugin Distribution
Scope Assessment
AC Checklist
.mcp.jsonbundles MCP server (npx -y sequant@latest serve)plugin.jsonmetadata-only, no hooks field, passesclaude plugin validate.sequant/, detects PM/stackprepare-marketplace.tscopies.mcp.json, validates version syncmarketplace.jsonuses correctsource: "./", version syncedexternal_plugins/<name>/structure (P2).mcp.json+ version sync validation${TMPDIR:-/tmp}instead of hardcoded/tmp/.mcp.jsonin.gitignore, distribution version at rootImplementation Phases
Phase 1: Foundation —
.mcp.json+.gitignore(AC-1, AC-10)Phase 2: Marketplace — Build script + marketplace.json (AC-4, AC-5)
Phase 3: Setup skill — Prerequisites, config, PM detection (AC-3)
Phase 4: CI — Remove guards, add validations (AC-7)
Phase 5: Hooks — Portable
/tmppaths (AC-8)Phase 6: Docs — README + marketplace README (AC-9)
Key Decisions
.mcp.jsonformat:{"mcpServers":{"sequant":{"command":"npx","args":["-y","sequant@latest","serve"]}}}— matches Claude Code plugin conventionmarketplace.jsonstayssource: "./"— same-repo model is correctNon-Goals
npxto bundled JSfeat(plugin): first-class plugin distribution with MCP server, setup …
admarble commentedon Mar 27, 2026
/fullsolve Complete
Issue: #476
Status: READY_FOR_MERGE
PR: #477
AC Coverage
.mcp.jsonbundles MCP servertemplates/mcp.jsonwith flat format,npx -y sequant@latest servesource: "./"correct, version synced, description updated/tmp/→${TMPDIR:-/tmp}, hooks/templates in sync.gitignoreadded, distribution template createdCoverage: 9/10 MET, 1 PARTIAL (AC-6 requires manual submission)
Quality Metrics
Self-Evaluation
Iterations
Next Steps
claude plugin install sequant@sequant-io/sequantadmarble commentedon Mar 27, 2026
Documentation Generated
File:
docs/features/plugin-distribution.mdSections Included:
/sequant:setup)Next Steps:
Ready to merge!
docs: add plugin distribution feature documentation (#476)
admarble commentedon Aug 30, 2026
AC-6 closed (2026-08-30): sequant submitted for plugin-directory review via the Console form (platform.claude.com/plugins/submit) — status "Submitted and pending review." Notes for the record: the process changed since this issue was filed — submissions now land in the community marketplace (
anthropics/claude-plugins-community, nightly catalog sync, commit-SHA pinned with CI auto-bumps); the official marketplace is curated separately with no application process. Pre-submission:claude plugin validate . --strictpasses clean (one marketplace-description warning found and fixed, ed116c2), and the submission copy went through an outsider clarity review (stale counts, jargon, and over-claims scrubbed; landing-page items filed as sequant-landing#125). Platform support claimed: Claude Code only — no Cowork test exists in the repo record.