feat: VS Code MCP integration with partner agent support#1304
Open
bthillerup wants to merge 5 commits intothedotmack:mainfrom
Open
feat: VS Code MCP integration with partner agent support#1304bthillerup wants to merge 5 commits intothedotmack:mainfrom
bthillerup wants to merge 5 commits intothedotmack:mainfrom
Conversation
- Implemented a new API endpoint to save memories/observations with optional title and project association. - Added a function to attempt auto-starting the worker service if it is not running, including checks for the bun executable. - Enhanced worker availability check to include auto-start attempts and improved logging for worker status.
…ilot instructions
- Add save_memory MCP tool wrapping POST /api/memory/save - Add worker auto-start with relative path resolution (works for npm global, marketplace, and repo installs) - Add VS Code MCP setup docs (docs/public/usage/vscode-mcp.mdx) - Add agent instructions template (plugin/templates/claude-mem.instructions.md) - Add VS Code MCP config template (plugin/templates/vscode-mcp.json) - Add dev MCP configs (.mcp.json for Claude partner agent, .vscode/mcp.json for Copilot) - Remove copilot-instructions.md (partner agent reads CLAUDE.md instead) - Revert unrelated build artifact changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…mory - Rewrite instructions template to be explicit and mandatory (MUST use, NOT optional) - Add save-as-you-work guidance for save_memory - Document hooks providing automatic capture alongside MCP explicit tools - Note Claude's local memory file works alongside claude-mem database Co-Authored-By: Claude Opus 4.6 <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.
This PR adds support for using claude-mem when using GH Claude partner agent within VS. (And I'm sure it will also work for GH native agents.
https://github.com/settings/copilot/coding_agent
Summary
save_memoryMCP tool wrappingPOST /api/memory/saveso agents can persist memoriesdocs/public/usage/vscode-mcp.mdx) with step-by-step guideplugin/templates/claude-mem.instructions.md) for CLAUDE.mdplugin/templates/vscode-mcp.json).mcp.jsonfor Claude partner agent,.vscode/mcp.jsonfor Copilot agent mode)Key discovery
The Claude partner agent in VS Code reads
.mcp.json(project root,mcpServerskey) — the same format as Claude Code CLI. It does not read.vscode/mcp.json(which uses theserverskey and is for Copilot agent mode). Absolute paths are required.Test plan
claude-memvianpm install -g claude-mem.mcp.jsonin a project with absolute path tomcp-server.cjssave_memoryandsearchround-tripsmart_outlineon a source file🤖 Generated with Claude Code