Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

# aisync: Multi-Agent Context Management, Coordination & Observability

<!-- mcp-name: io.github.MaxonT/aisync -->

**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.
Expand Down
2 changes: 1 addition & 1 deletion ai_sync/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion docs/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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"]
26 changes: 26 additions & 0 deletions server.json
Original file line number Diff line number Diff line change
@@ -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"}
}
]
}
20 changes: 18 additions & 2 deletions tests/test_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"<!-- mcp-name: {manifest['name']} -->", (ROOT / "README.md").read_text())
# the launch command is `uvx --with <extra> 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",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down
Loading