Repository navigation
plugin: make pathiel-research installable from the marketplace - #36
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 researchbuilds a self-contained bundle (68 files, the server's real import closure; order/signing/key-vault code cut out) for aplugin-researchbranch..claude-plugin/marketplace.json: pathiel-research source is now{github, Julian-dev28/pathiel, ref: plugin-research}.${CLAUDE_PLUGIN_ROOT}; privacy link points at the hosted page; version 0.2.0 (server and plugin.json pinned together).claude plugin validate --profile directory --strict0 findings; a real install in a throwaway config started the server and listed its 6 tools.Gate: 7035+ passed.
🤖 Generated with Claude Code