Skip to content

plugin: make pathiel-research installable from the marketplace - #36

Merged
Julian-dev28 merged 2 commits into
mainfrom
feature/research-plugin-bundle
Nov 22, 2026
Merged

Julian-dev28 merged 2 commits into
mainfrom
feature/research-plugin-bundle

Conversation

@Julian-dev28

Copy link
Copy Markdown
Owner

pathiel-research could not start after a real marketplace install: its server command pointed at ${CLAUDE_PLUGIN_ROOT}/../../scripts/..., and Claude Code copies only the plugin's own directory into its cache.

  • scripts/build_plugin_bundle.py --plugin research builds a self-contained bundle (68 files, the server's real import closure; order/signing/key-vault code cut out) for a plugin-research branch.
  • .claude-plugin/marketplace.json: pathiel-research source is now {github, Julian-dev28/pathiel, ref: plugin-research}.
  • Server command stays inside ${CLAUDE_PLUGIN_ROOT}; privacy link points at the hosted page; version 0.2.0 (server and plugin.json pinned together).
  • Proven: claude plugin validate --profile directory --strict 0 findings; a real install in a throwaway config started the server and listed its 6 tools.

Gate: 7035+ passed.

🤖 Generated with Claude Code

Julian-dev28 and others added 2 commits November 21, 2026 17:05
services/research_mcp/.claude-plugin/plugin.json started its server with
"${CLAUDE_PLUGIN_ROOT}/../../scripts/pathiel-research-mcp.sh", and the
marketplace entry's source was the relative path "./services/research_mcp".
Claude Code only copies a relative-path entry's own directory into the
plugin cache (code.claude.com/docs/en/plugins/loading: "Every other
marketplace plugin: ... Files outside the plugin directory aren't
copied"), so a real install got services/research_mcp/ alone and the
launcher could not import the server at all.

Fix: extend scripts/build_plugin_bundle.py with a second target
(--plugin research) that builds a self-contained bundle onto its own
branch, plugin-research, mirroring the existing plugin branch pattern.
The bundle's root holds every file the server's import closure touches
(services/intel, services/strategies, contracts, pathiel.client.hl_client
and friends), derived mechanically from real imports, with an explicit
forbidden-module cut (RESEARCH_FORBIDDEN_MODULES, a superset of the
server's own test_no_trading_imports.py gate plus services.accounts) so
no order, signing or credential code ships even as dead weight. The
checked-in plugin.json's args now stay inside ${CLAUDE_PLUGIN_ROOT}.

.claude-plugin/marketplace.json's pathiel-research entry now points at a
`github` source pinned to the plugin-research branch instead of the
relative path, and plugin.json's privacyPolicyUrl matches the trading
plugin's hosted privacy page (which already documents the research
server).

Gate tests: tests/test_plugin_bundle_research.py (self-containment, the
forbidden-module cut, the server answers the same 6 tools from the bundle
alone, publish idempotency). Eval: tests/test_eval_plugin_bundle_research.py
(bundle size, no escaped paths, no dead links, claude plugin validate
--profile directory --strict). tests/test_plugin.py and
tests/test_listing_metadata.py updated for the new source shape and
privacy URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… pins them together

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Julian-dev28
Julian-dev28 merged commit 2665b8c into main Nov 22, 2026
13 checks passed
@Julian-dev28
Julian-dev28 deleted the feature/research-plugin-bundle branch November 22, 2026 01:19
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.

1 participant