Skip to content

feat(plugin): first-class plugin distribution with MCP server (#476) - #477

Merged
admarble merged 5 commits into
mainfrom
feature/476-feat-fix-plugin-distribution-as-first-class-al
Mar 27, 2026
Merged

admarble merged 5 commits into
mainfrom
feature/476-feat-fix-plugin-distribution-as-first-class-al

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add .mcp.json template for plugin MCP server distribution (npx -y sequant@latest serve)
  • Rewrite /sequant:setup skill v2.0: prerequisites, .sequant/ config, PM/stack detection, manifest
  • Update prepare-marketplace.ts: copy .mcp.json, validate format, check marketplace.json version sync
  • Harden plugin CI: remove fallback guards, add .mcp.json validation, version sync check, portable path check
  • Update release workflow: sync marketplace.json version, run marketplace build
  • Replace hardcoded /tmp/ with ${TMPDIR:-/tmp} in hooks for macOS/Linux portability
  • Add .mcp.json to .gitignore (dev-only config has hardcoded paths)

AC Coverage

AC Description Status
AC-1 Plugin bundles MCP server MET
AC-2 Plugin manifest best practices MET
AC-3 Setup skill bridges config gap MET
AC-4 Marketplace build includes MCP config MET
AC-5 Self-hosted marketplace.json correct MET
AC-6 Official marketplace submission PARTIAL (structure ready, submission manual)
AC-7 Plugin CI validates full package MET
AC-8 Hook scripts portable paths MET
AC-9 Documentation covers both paths MET
AC-10 Remove dev-only .mcp.json MET

Test plan

  • npm run build passes
  • npm run lint passes
  • npm test passes (2334/2335, 1 pre-existing flaky timeout)
  • npm run prepare:marketplace validates .mcp.json in output
  • Hook scripts pass bash -n syntax check
  • No bare /tmp/ references in hooks (all use ${TMPDIR:-/tmp})
  • hooks/ and templates/hooks/ are in sync

Closes #476

…skill, CI hardening

- Add templates/mcp.json for plugin MCP server config (npx sequant@latest serve)
- Add .mcp.json to .gitignore (dev-only config has hardcoded paths)
- Update prepare-marketplace.ts: copy .mcp.json, validate it, check marketplace.json version sync
- Update marketplace.json description to mention MCP tools
- Rewrite setup skill v2.0: prerequisites check, .sequant/ config, PM/stack detection, manifest
- Mirror setup skill to templates/skills/setup/ and .claude/skills/setup/
- Harden plugin CI: remove fallback guards, add .mcp.json validation, version sync check, portable path check
- Update release workflow: sync marketplace.json version, run marketplace build
- Replace hardcoded /tmp/ with ${TMPDIR:-/tmp} in hooks for macOS/Linux portability
- Mirror hook changes to templates/hooks/

Closes #476
Plugin .mcp.json uses flat format (server name as top-level key),
not the mcpServers wrapper used by project .mcp.json files.
Updated template, marketplace validation, and CI to match.
…talls

For `claude plugin install sequant@sequant-io/sequant` to discover the
MCP server, .mcp.json must be at repo root and tracked in git.
Force-added despite .gitignore (which prevents accidental dev overrides).

Also adds --plugin-dir CI test and root .mcp.json to CI trigger paths.
- AC-8: Use CLAUDE_PLUGIN_DATA/logs/ for persistent log storage when
  available, falling back to ${TMPDIR:-/tmp} for non-plugin environments
- AC-9: Fix skill dual-path support — replace CLAUDE_PLUGIN_ROOT/scripts/
  with ./scripts/dev/ in fullsolve and testgen skills; use fallback
  ${CLAUDE_PLUGIN_ROOT:-./templates} in setup skill constitution path
- AC-7: CI now builds marketplace package and checks dist/ output version
  in the 4-way version sync (package.json, plugin.json, marketplace.json,
  dist/plugin.json)
README now shows both install paths: plugin (interactive) and npm
(power users/CI), matching the marketplace README.
@admarble
admarble merged commit 362cc58 into main Mar 27, 2026
8 checks passed
@admarble
admarble deleted the feature/476-feat-fix-plugin-distribution-as-first-class-al branch March 27, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: fix plugin distribution as first-class alternate to npm+MCP

1 participant