Skip to content

Agentic memory integration #11

Draft
zutshisunakshi wants to merge 1 commit into
mainfrom
mcp-agentic-memory
Draft

Agentic memory integration #11
zutshisunakshi wants to merge 1 commit into
mainfrom
mcp-agentic-memory

Conversation

@zutshisunakshi
Copy link
Copy Markdown

@zutshisunakshi zutshisunakshi commented May 5, 2026

Part of https://github.com/github/agents/issues/856

Adds optional support for Copilot Memory tools (inject_memories, store_memory, vote_memory)

This PR tracks changes:

  • Introduces @github/copilot-agentic-tools v0.8.0 as optional dependency so it is non-blocking if for some reason memory is not setup. Uses dynamic import.
    Adds optional support for Copilot Memory tools (inject_memories, store_memory, vote_memory) to the engine MCP server.
  • Add EngineMemoryConfig type for memory tool configuration
  • Add createEngineMcpServerAsync() factory with dynamic memory tool registration
  • Register memory tools via optional dependency on @github/copilot-agentic-tools
  • Support both user and repository scoped memories

Example Usage

const server = await createEngineMcpServerAsync({
  workingDir: "/repo",
  memory: {
    token: process.env.COPILOT_TOKEN,
    integrationId: "copilot-swe-agent",
    scope: "repository",
    owner: "github",
    repo: "my-repo",
  },
});

Local testing

Script ran locally to test MCP tools work https://gist.github.com/zutshisunakshi/7f5d657d254c4dd5860845bafe98aed4
Screenshot 2026-05-04 at 11 17 19 PM

Note: this still requires package to be installed - which is not published to public registry yet. That bit still an open Q.

Co-authored-by: Copilot <copilot@github.com>
@zutshisunakshi
Copy link
Copy Markdown
Author

cc @kinseydurhamgrace and @shaikhul - this would need more work but should give an idea on the integration approach. I don't expect a deep review from you both this week, but if you can take a look on the general direction and if I should consider anything else I missed to test this out - that would be helpful.

I just ran this with copilot based on how I understood the interface and then tested out locally to see if this worked / would work

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