diff --git a/README.md b/README.md index d9396ed..eb8d6f1 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ # aisync: Multi-Agent Context Management, Coordination & Observability + + **One local hub for developers working with multiple AI coding agents: share the right context, coordinate concurrent work, and verify what happened.** aisync is **agent-agnostic at its core**. It provides native hooks for Claude Code, Codex and Cursor, and exposes its hub to other agents through a CLI, MCP server, or shared instruction files. These three native integrations are **not** a limit on which agents can use aisync. diff --git a/ai_sync/__init__.py b/ai_sync/__init__.py index b1d839f..217648e 100644 --- a/ai_sync/__init__.py +++ b/ai_sync/__init__.py @@ -1,2 +1,2 @@ """aisync: multi-agent context management, coordination and observability (shared rules, journal, claims, news hooks).""" -__version__ = "0.2.10" +__version__ = "0.2.11" diff --git a/docs/install.sh b/docs/install.sh index bafd90e..61ec13b 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -13,7 +13,7 @@ # It never edits shell config, never uses sudo, and never reads any of your files. set -euo pipefail -VERSION="0.2.10" +VERSION="0.2.11" REPO="https://github.com/MaxonT/aisync" SPEC="${REPO}/releases/download/v${VERSION}/aisync_cli-${VERSION}-py3-none-any.whl" VENV="${HOME}/.local/share/aisync/venv" diff --git a/npm/package.json b/npm/package.json index 65c5766..fda5d4c 100644 --- a/npm/package.json +++ b/npm/package.json @@ -1,6 +1,6 @@ { "name": "@mingyang2026/aisync-cli", - "version": "0.2.10", + "version": "0.2.11", "description": "aisync: shared rules, journal and claims for every AI coding tool. This npm package runs the PyPI release (aisync-cli) through uvx or pipx.", "license": "MIT", "bin": { diff --git a/pyproject.toml b/pyproject.toml index 14d4b8c..2de57ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "aisync-cli" -version = "0.2.10" +version = "0.2.11" description = "Multi-agent context management, coordination and observability for AI coding agents: shared rules written as When/Do/Not interfaces, a hash-chained journal, file claims, layered rule loading and mid-session news hooks for Claude Code, Codex and Cursor, plus an MCP server for any agent." readme = "README.md" license = { text = "MIT" } @@ -31,6 +31,7 @@ Source = "https://github.com/MaxonT/aisync" [project.scripts] aisync = "ai_sync.cli:main" +aisync-cli = "ai_sync.cli:main" [tool.setuptools] packages = ["ai_sync"] diff --git a/server.json b/server.json new file mode 100644 index 0000000..758efc6 --- /dev/null +++ b/server.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", + "name": "io.github.MaxonT/aisync", + "title": "aisync", + "description": "Multi-agent context management, coordination and observability for AI coding tools.", + "repository": { + "url": "https://github.com/MaxonT/aisync", + "source": "github" + }, + "version": "0.2.11", + "packages": [ + { + "registryType": "pypi", + "identifier": "aisync-cli", + "version": "0.2.11", + "runtimeHint": "uvx", + "runtimeArguments": [ + {"type": "named", "name": "--with", "value": "mcp>=2.3,<3"} + ], + "packageArguments": [ + {"type": "positional", "value": "mcp"} + ], + "transport": {"type": "stdio"} + } + ] +} diff --git a/tests/test_public.py b/tests/test_public.py index fb733fc..5730745 100644 --- a/tests/test_public.py +++ b/tests/test_public.py @@ -186,13 +186,29 @@ def test_unknown_step_and_broken_json(self): class ReleaseTests(unittest.TestCase): def test_version_and_console_script(self): meta = tomllib.loads((ROOT / "pyproject.toml").read_text())["project"] - self.assertEqual(meta["version"], "0.2.10") + self.assertEqual(meta["version"], "0.2.11") self.assertEqual(ai_sync.__version__, meta["version"]) self.assertEqual(meta["name"], "aisync-cli") - self.assertEqual(meta["scripts"], {"aisync": "ai_sync.cli:main"}) + # aisync-cli is an alias so `uvx aisync-cli` (what the MCP registry runs) finds an executable named like the package + self.assertEqual(meta["scripts"], {"aisync": "ai_sync.cli:main", "aisync-cli": "ai_sync.cli:main"}) self.assertEqual(meta["dependencies"], []) self.assertEqual(meta["optional-dependencies"], {"mcp": ["mcp>=2.3,<3"]}) + def test_mcp_registry_manifest_matches_the_release(self): + """server.json (official MCP registry) must name this version and the README must carry the ownership line.""" + import json + meta = tomllib.loads((ROOT / "pyproject.toml").read_text())["project"] + manifest = json.loads((ROOT / "server.json").read_text()) + self.assertEqual(manifest["version"], meta["version"]) + pkg = manifest["packages"][0] + self.assertEqual((pkg["registryType"], pkg["identifier"], pkg["version"]), ("pypi", meta["name"], meta["version"])) + self.assertEqual(pkg["transport"], {"type": "stdio"}) + self.assertLessEqual(len(manifest["description"]), 100) + self.assertIn(f"", (ROOT / "README.md").read_text()) + # the launch command is `uvx --with aisync-cli mcp`: the extra must be the one pyproject declares + self.assertEqual(pkg["runtimeArguments"], [{"type": "named", "name": "--with", "value": meta["optional-dependencies"]["mcp"][0]}]) + self.assertEqual(pkg["packageArguments"], [{"type": "positional", "value": "mcp"}]) + def test_every_command_has_a_cli_test(self): commands = cli.build_parser()._subparsers._group_actions[0].choices self.assertTrue({"init", "log", "rule", "claim", "release", "claims", "news", "hook", "install-hooks", diff --git a/tests/test_wheel.py b/tests/test_wheel.py index 28e0840..9389e41 100644 --- a/tests/test_wheel.py +++ b/tests/test_wheel.py @@ -22,7 +22,7 @@ def test_build_install_run(self): if r is None or r.returncode != 0: r = subprocess.run(wheel, capture_output=True, text=True) self.assertEqual(r.returncode, 0, r.stderr[-2000:]) - wheels = list((d / "dist").glob("aisync_cli-0.2.10-*.whl")) + wheels = list((d / "dist").glob("aisync_cli-0.2.11-*.whl")) self.assertEqual(len(wheels), 1, list((d / "dist").iterdir())) subprocess.run([sys.executable, "-m", "venv", d / "venv"], check=True) pip, exe = d / "venv/bin/pip", d / "venv/bin/aisync" @@ -31,7 +31,7 @@ def test_build_install_run(self): "GIT_CONFIG_GLOBAL": str(d / "gitconfig"), "GIT_CONFIG_NOSYSTEM": "1"} run = lambda *a, **kw: subprocess.run([exe, *map(str, a)], env=env, capture_output=True, text=True, **kw) - self.assertEqual(run("--version").stdout.strip(), "aisync 0.2.10") + self.assertEqual(run("--version").stdout.strip(), "aisync 0.2.11") out = run("demo", "--dir", d / "demo") self.assertEqual(out.returncode, 0, out.stderr) self.assertIn("chain intact", out.stdout)