-
Notifications
You must be signed in to change notification settings - Fork 1
Add the Claude Code plugin manifests #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "name": "continuum", | ||
| "owner": { | ||
| "name": "00PrabalK00", | ||
| "url": "https://github.com/00PrabalK00" | ||
| }, | ||
| "metadata": { | ||
| "description": "Shared project memory for AI coding agents. Switch between Claude, Codex and Gemini without re-explaining your work.", | ||
| "version": "0.13.0" | ||
| }, | ||
| "plugins": [ | ||
| { | ||
| "name": "continuum", | ||
| "source": "./", | ||
| "description": "Records what you are working on and hands it to whichever AI you open next. Local files only.", | ||
| "version": "0.13.0", | ||
| "author": { | ||
| "name": "00PrabalK00", | ||
| "url": "https://github.com/00PrabalK00" | ||
| }, | ||
| "homepage": "https://github.com/00PrabalK00/Continuum", | ||
| "repository": "https://github.com/00PrabalK00/Continuum", | ||
| "license": "MIT", | ||
| "keywords": [ | ||
| "memory", | ||
| "context", | ||
| "handoff", | ||
| "mcp", | ||
| "multi-agent" | ||
| ] | ||
| } | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "$schema": "https://anthropic.com/claude-code/plugin.schema.json", | ||
| "name": "continuum", | ||
| "description": "Shared project memory for AI coding agents. Records what you are working on and hands it to whichever AI you open next.", | ||
| "version": "0.13.0", | ||
| "author": { | ||
| "name": "00PrabalK00", | ||
| "url": "https://github.com/00PrabalK00" | ||
| }, | ||
| "homepage": "https://github.com/00PrabalK00/Continuum", | ||
| "repository": "https://github.com/00PrabalK00/Continuum", | ||
| "license": "MIT", | ||
| "keywords": [ | ||
| "memory", | ||
| "context", | ||
| "handoff", | ||
| "mcp", | ||
| "multi-agent" | ||
| ] | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "continuum": { | ||
| "command": "continuum", | ||
| "args": ["mcp", "serve", "--project", "${CLAUDE_PROJECT_DIR}"] | ||
| } | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| """The Claude Code plugin manifests have to stay true. | ||
|
|
||
| A manifest is only read by someone else's tool, so nothing here fails when it | ||
| drifts: the version silently disagrees with the package, or the declared MCP | ||
| command stops existing, and the first person to notice is a stranger whose | ||
| install did nothing. | ||
| """ | ||
|
|
||
| import json | ||
| import unittest | ||
| from pathlib import Path | ||
|
|
||
| from continuum import __version__ | ||
| from continuum.cli import parser | ||
|
|
||
| ROOT = Path(__file__).resolve().parents[1] | ||
| PLUGIN = ROOT / ".claude-plugin" / "plugin.json" | ||
| MARKETPLACE = ROOT / ".claude-plugin" / "marketplace.json" | ||
| MCP = ROOT / ".mcp.json" | ||
|
|
||
|
|
||
| def load(path: Path) -> dict: | ||
| return json.loads(path.read_text(encoding="utf-8")) | ||
|
|
||
|
|
||
| class ManifestTest(unittest.TestCase): | ||
| def test_both_manifests_are_valid_json(self): | ||
| self.assertIsInstance(load(PLUGIN), dict) | ||
| self.assertIsInstance(load(MARKETPLACE), dict) | ||
|
|
||
| def test_the_plugin_version_matches_the_package(self): | ||
| self.assertEqual(load(PLUGIN)["version"], __version__) | ||
|
|
||
| def test_the_marketplace_entry_matches_the_plugin(self): | ||
| entry = load(MARKETPLACE)["plugins"][0] | ||
| plugin = load(PLUGIN) | ||
| self.assertEqual(entry["name"], plugin["name"]) | ||
| self.assertEqual(entry["version"], plugin["version"]) | ||
|
|
||
| def test_the_server_is_declared_where_claude_code_reads_it(self): | ||
| # Claude Code reads MCP servers from .mcp.json at the plugin root, not | ||
| # from an mcpServers key in plugin.json. Declaring it in plugin.json | ||
| # installs cleanly and registers nothing, which is what happened: the | ||
| # component inventory reported "MCP servers (0)" while the README said | ||
| # installing registers the server. | ||
| self.assertTrue(MCP.exists(), ".mcp.json is what actually registers the server") | ||
| self.assertNotIn("mcpServers", load(PLUGIN)) | ||
|
|
||
| def test_the_declared_mcp_command_exists(self): | ||
| # The manifest promises `continuum mcp serve`. If that subcommand is | ||
| # renamed, the plugin installs and then does nothing. | ||
| server = load(MCP)["continuum"] | ||
| self.assertEqual(server["command"], "continuum") | ||
| self.assertEqual(server["args"][:2], ["mcp", "serve"]) | ||
|
|
||
| def test_the_cli_still_has_that_subcommand(self): | ||
| root = parser() | ||
| commands = next(a for a in root._actions if getattr(a, "choices", None) and "mcp" in a.choices) | ||
| mcp = commands.choices["mcp"] | ||
| serve = next(a for a in mcp._actions if getattr(a, "choices", None) and "serve" in a.choices) | ||
| self.assertIn("serve", serve.choices) | ||
|
|
||
| def test_the_project_directory_is_passed_through(self): | ||
| # Without it the server would scope itself to the process working | ||
| # directory, which is not necessarily the project being opened. | ||
| args = load(MCP)["continuum"]["args"] | ||
| self.assertIn("--project", args) | ||
| self.assertTrue(any("CLAUDE_PROJECT_DIR" in item for item in args)) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| unittest.main() |
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.
Uh oh!
There was an error while loading. Please reload this page.