Skip to content

chore: release 0.8.6 — @agentmemory/mcp shim + docs#134

Merged
rohitg00 merged 1 commit intomainfrom
fix/shim-scoped-name-0.8.6
Apr 13, 2026
Merged

chore: release 0.8.6 — @agentmemory/mcp shim + docs#134
rohitg00 merged 1 commit intomainfrom
fix/shim-scoped-name-0.8.6

Conversation

@rohitg00
Copy link
Copy Markdown
Owner

@rohitg00 rohitg00 commented Apr 13, 2026

Finishes the #120 npx <shim> story. 0.8.5 published the main package fine, but the shim publish step hit a separate 403 — npm's name-similarity policy blocks agentmemory-mcp because of an unrelated third-party agent-memory-mcp. Moving the shim under the scope we already own (@agentmemory/mcp) sidesteps the conflict.

Changes

  • packages/agentmemory-mcp/packages/mcp/
  • Package name agentmemory-mcp@agentmemory/mcp (0.8.4 → 0.8.6)
  • Shim now tracks the main package version, depends on @agentmemory/agentmemory: ~0.8.6
  • Bin name stays agentmemory-mcpnpm i -g @agentmemory/mcp still creates an agentmemory-mcp binary for muscle memory
  • Log prefix [agentmemory-mcp][@agentmemory/mcp] in src/mcp/standalone.ts and src/mcp/in-memory-kv.ts
  • README, OpenClaw guide, Hermes guide, src/cli.ts --help, Cursor/Codex/Claude-Desktop/OpenCode/Gemini-CLI snippets all updated to npx -y @agentmemory/mcp
  • .github/workflows/publish.yml working-directory → packages/mcp, propagation check → npm view @agentmemory/mcp
  • 8-file version bump 0.8.5 → 0.8.6 (package.json, package-lock.json x2, plugin.json, version.ts, types.ts, export-import.ts, export-import.test.ts)
  • CHANGELOG [0.8.6] entry

Verification

  • npm run build — clean
  • npm test — 698 passing (60 files)

Test plan

  • Build passes
  • All 698 tests pass
  • Grep confirms only intentional agentmemory-mcp references remain (CHANGELOG history + bin name + README rationale)
  • After merge + tag + release: publish workflow runs cleanly end-to-end (both packages land on npm)

Summary by CodeRabbit

  • Chores
    • Released version 0.8.6
    • Renamed MCP package from agentmemory-mcp to @agentmemory/mcp on npm
    • Updated package name references across all installation guides and configuration examples
    • Updated log message prefixes and internal version tracking

0.8.5's publish workflow got blocked on the unscoped `agentmemory-mcp`
name by npm's name-similarity policy (there's an unrelated third-party
package called `agent-memory-mcp`). Publishing the shim under the
`@agentmemory` scope we already own sidesteps the conflict.

Changes:
- Rename packages/agentmemory-mcp → packages/mcp
- Package name: agentmemory-mcp → @agentmemory/mcp (0.8.4 → 0.8.6)
- Keep bin name `agentmemory-mcp` so `npm i -g @agentmemory/mcp`
  still installs a binary at `agentmemory-mcp` for muscle memory
- Log prefix [agentmemory-mcp] → [@agentmemory/mcp] in standalone.ts
  and in-memory-kv.ts
- README / integrations/openclaw / integrations/hermes / src/cli.ts
  all point at `npx -y @agentmemory/mcp`
- .github/workflows/publish.yml working-directory and npm view queries
  target packages/mcp and @agentmemory/mcp
- Shim dependency on @agentmemory/agentmemory bumped to ~0.8.6
- Main package 0.8.5 → 0.8.6 across the 8 version files
- CHANGELOG [0.8.6] entry documenting the scope move
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

📝 Walkthrough

Walkthrough

This pull request renames the MCP package from agentmemory-mcp to @agentmemory/mcp (scoped npm package), bumps the version from 0.8.5 to 0.8.6, and updates all corresponding documentation, configuration, and version compatibility references throughout the repository and GitHub workflows.

Changes

Cohort / File(s) Summary
Package Metadata & Version Bump
package.json, packages/mcp/package.json, plugin/.claude-plugin/plugin.json, src/version.ts
Updated version from 0.8.5 to 0.8.6; renamed agentmemory-mcp to @agentmemory/mcp scoped package; adjusted internal dependency versions and repository paths.
Documentation Updates
README.md, packages/mcp/README.md, integrations/hermes/README.md, integrations/openclaw/README.md
Updated all MCP client configuration examples and command invocations to use @agentmemory/mcp instead of agentmemory-mcp.
Publishing & CLI Configuration
.github/workflows/publish.yml, src/cli.ts
Updated workflow step names and working-directory references from agentmemory-mcp to mcp; changed npm version checks to query scoped package; updated standalone MCP command in help output.
Log/Error Message Updates
packages/mcp/bin.mjs, src/mcp/in-memory-kv.ts, src/mcp/standalone.ts
Updated stderr log prefixes from [agentmemory-mcp] to [@agentmemory/mcp].
Version Support & Compatibility
src/types.ts, src/functions/export-import.ts, test/export-import.test.ts
Extended ExportData.version union and import version allowlist to include "0.8.6"; updated test expectations to match new version.
Release Notes
CHANGELOG.md
Added entry documenting package scoping change, version bump to 0.8.6, and directory rename from packages/agentmemory-mcp/ to packages/mcp/.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • PR #117: Updates version-related symbols and export-import compatibility allowlist (src/functions/export-import.ts, src/types.ts, src/version.ts) for version support.
  • PR #126: Modifies the same versioning code and package metadata files to bump and maintain version consistency across the repository.
  • PR #133: Makes parallel code-level changes to export-import compatibility and version constants; this PR extends those changes with package scoping.

Poem

🐰 A bunny hops with glee, the package scoped at last!
From agentmemory-mcp to @agentmemory/mcp so fast,
With version 0.8.6 now on the NPM shelf,
The logs sing out their new name—a renamed self! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the primary objective: a 0.8.6 release featuring the MCP shim package move to the @agentmemory npm scope and accompanying documentation updates.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/shim-scoped-name-0.8.6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
src/cli.ts (1)

44-44: Align CLI help with the documented npx -y invocation.

Line 44 uses npx @agentmemory/mcp; consider `npx -y `@agentmemory/mcp for consistency with the rest of this release docs and to avoid interactive prompts in some environments.

Proposed doc/help tweak
-  npx `@agentmemory/mcp`                  # same as above (shim package)
+  npx -y `@agentmemory/mcp`               # same as above (shim package)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/cli.ts` at line 44, Update the CLI help text that currently shows the
snippet "npx `@agentmemory/mcp`" to include the non-interactive flag by changing
it to "npx -y `@agentmemory/mcp`"; locate and replace that literal string in the
help output (e.g., where the help/usage text is constructed or returned) so the
displayed example matches the documented `npx -y` invocation and avoids
interactive prompts.
.github/workflows/publish.yml (1)

50-67: Optional: centralize shim package name to avoid future drift.

@agentmemory/mcp is repeated in multiple places; consider a job-level env var (for example SHIM_PKG) and reuse it in both publish/poll steps for easier future renames.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/publish.yml around lines 50 - 67, Centralize the repeated
package name by adding a job-level environment variable (e.g. SHIM_PKG) and use
it in both the "Publish `@agentmemory/mcp` shim" and "Wait for `@agentmemory/mcp`
registry propagation" steps instead of the hard-coded "@agentmemory/mcp"; keep
the existing SHIM_VERSION logic and NODE_AUTH_TOKEN env but replace the literal
package string in npm view and npm publish commands with the SHIM_PKG variable
so future renames only require updating one place.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/functions/export-import.ts`:
- Line 178: The runtime allowlist in the supportedVersions Set (identifier:
supportedVersions) contains "0.7.7" but the TypeScript contract
ExportData.version (identifier: ExportData.version union) does not—synchronize
them by either removing "0.7.7" from the supportedVersions Set or by adding
"0.7.7" to the ExportData.version union in src/types.ts; if you add the version,
also update the VERSION constant (identifier: VERSION), package.json version
field, plugin.json version, and the test asserting supported versions
(identifier: export-import.test.ts version assertion) so all runtime, type,
version constant and tests remain consistent.

---

Nitpick comments:
In @.github/workflows/publish.yml:
- Around line 50-67: Centralize the repeated package name by adding a job-level
environment variable (e.g. SHIM_PKG) and use it in both the "Publish
`@agentmemory/mcp` shim" and "Wait for `@agentmemory/mcp` registry propagation"
steps instead of the hard-coded "@agentmemory/mcp"; keep the existing
SHIM_VERSION logic and NODE_AUTH_TOKEN env but replace the literal package
string in npm view and npm publish commands with the SHIM_PKG variable so future
renames only require updating one place.

In `@src/cli.ts`:
- Line 44: Update the CLI help text that currently shows the snippet "npx
`@agentmemory/mcp`" to include the non-interactive flag by changing it to "npx -y
`@agentmemory/mcp`"; locate and replace that literal string in the help output
(e.g., where the help/usage text is constructed or returned) so the displayed
example matches the documented `npx -y` invocation and avoids interactive
prompts.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8e80d1c1-784e-4c32-a72f-4f0558bb3a12

📥 Commits

Reviewing files that changed from the base of the PR and between 3935aec and 28ba47c.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (18)
  • .github/workflows/publish.yml
  • CHANGELOG.md
  • README.md
  • integrations/hermes/README.md
  • integrations/openclaw/README.md
  • package.json
  • packages/mcp/LICENSE
  • packages/mcp/README.md
  • packages/mcp/bin.mjs
  • packages/mcp/package.json
  • plugin/.claude-plugin/plugin.json
  • src/cli.ts
  • src/functions/export-import.ts
  • src/mcp/in-memory-kv.ts
  • src/mcp/standalone.ts
  • src/types.ts
  • src/version.ts
  • test/export-import.test.ts

const importData = data.exportData;

const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5"]);
const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6"]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Align runtime import allowlist with the typed export contract.

Line 178 allows "0.7.7" at runtime, but ExportData.version in src/types.ts (Line 255) does not include it. This makes runtime behavior and TypeScript API guarantees inconsistent.

💡 Suggested fix (choose one direction)
-const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6"]);
+const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6"]);

Or, if 0.7.7 is intentionally supported, add "0.7.7" to the ExportData.version union in src/types.ts.

Based on learnings: "When bumping version, update: package.json version field, src/version.ts VERSION constant and type union, src/types.ts ExportData version union, src/functions/export-import.ts supportedVersions set, test/export-import.test.ts version assertion, and plugin.json version field".

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6"]);
const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6"]);
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/functions/export-import.ts` at line 178, The runtime allowlist in the
supportedVersions Set (identifier: supportedVersions) contains "0.7.7" but the
TypeScript contract ExportData.version (identifier: ExportData.version union)
does not—synchronize them by either removing "0.7.7" from the supportedVersions
Set or by adding "0.7.7" to the ExportData.version union in src/types.ts; if you
add the version, also update the VERSION constant (identifier: VERSION),
package.json version field, plugin.json version, and the test asserting
supported versions (identifier: export-import.test.ts version assertion) so all
runtime, type, version constant and tests remain consistent.

@rohitg00 rohitg00 merged commit 416fa15 into main Apr 13, 2026
3 checks passed
@rohitg00 rohitg00 deleted the fix/shim-scoped-name-0.8.6 branch April 13, 2026 23:31
@coderabbitai coderabbitai Bot mentioned this pull request Apr 22, 2026
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