Skip to content

feat: Agentage VS Code extension v0.0.1 - connect your editor's AI to your memory over MCP#1

Merged
vreshch merged 11 commits into
masterfrom
feat/initial-extension
Jun 21, 2026
Merged

feat: Agentage VS Code extension v0.0.1 - connect your editor's AI to your memory over MCP#1
vreshch merged 11 commits into
masterfrom
feat/initial-extension

Conversation

@vreshch

@vreshch vreshch commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

Initial release of the Agentage extension. One command connects your editor's AI agent - GitHub Copilot, Cursor, or Windsurf - to your Agentage memory over MCP, so it can read and answer from the same memory every AI you use shares.

Named Agentage (not "Agentage Memory") - memory is the current scope, with room to grow.

What it does

  • Agentage: Connect Memory to this editor registers the remote MCP server (memory.agentage.io/mcp, Streamable HTTP) with the host editor's agent:
    • VS Code - the mcp/install deeplink (host-managed, global).
    • Cursor - ~/.cursor/mcp.json (mcpServers + url).
    • Windsurf - ~/.codeium/windsurf/mcp_config.json (mcpServers + serverUrl).
    • Existing config is read-merged, never overwritten; host detected via env.uriScheme.
  • The host editor runs OAuth 2.1 itself when its agent first uses the server. The extension stores no tokens, no telemetry, and has no runtime dependencies.
  • agentage.mcpUrl setting to target a different stack.

Design

  • No in-process MCP client - registration only - so the @modelcontextprotocol/sdk dependency is gone and the bundle is 6.3 KB (.vsix 31 KB).
  • Pure host/JSON helpers in connect-core.ts are vitest-tested (10 tests); the vscode-facing glue is in connect-editor.ts.
  • Publish-ready manifest (icon, gallery banner, capabilities.untrustedWorkspaces, extensionKind), dual-registry publish CI on v* tags, demo GIF.

Verification

  • npm run check-types clean, npm test 10/10, vsce package clean (6 files), bundle smoke-loads.
  • Not yet verified end-to-end: the live mcp/install deeplink + Cursor/Windsurf config pickup, and the host-side OAuth against auth.agentage.io - needs a real F5 run in each editor. Confirm the AS allows VS Code's redirect (http://127.0.0.1:33418, https://vscode.dev/redirect).

Notes

  • Repo is public. Publishing needs publisher agentage (Marketplace) + an Open VSX namespace, and the VS_MARKETPLACE_TOKEN / OPEN_VSX_TOKEN secrets, then a v0.0.1 tag.

vreshch added 4 commits June 21, 2026 01:31
Connect VS Code to your Agentage Memory in the cloud and search it over MCP.

- One command (Agentage: Search Memory): live search-as-you-type over
  memory.agentage.io/mcp (Streamable HTTP), opens the hit read-only.
- OAuth 2.1 + PKCE + DCR sign-in; token in SecretStorage; loopback callback.
- Gear (settings) + sign-out buttons in the search box; agentage.mcpUrl setting.
- esbuild bundle, vitest unit tests, dual-registry (Marketplace + Open VSX) CI.
- Official agentage rocket-A icon.
- Rename to Agentage (displayName + id 'agentage.agentage'); memory is the
  current scope, room to grow.
- Add 'Agentage: Connect Memory to this editor': registers the MCP server with
  the host editor's AI (VS Code install deeplink; Cursor/Windsurf config files,
  merged not clobbered). VS Code/Cursor/Windsurf detection via env.uriScheme.
- Remove the in-process Search Memory command + its client/auth/doc stack and the
  @modelcontextprotocol/sdk dependency (host editor handles MCP + OAuth).
- Bundle 280KB -> 6.3KB; README/CHANGELOG/CONTRIBUTING rewritten.
@vreshch vreshch changed the title feat: Agentage Memory VS Code extension v0.0.1 feat: Agentage VS Code extension v0.0.1 - connect your editor's AI to your memory over MCP Jun 21, 2026
vreshch added 4 commits June 21, 2026 02:24
… + temp HOME

Asserts the real command writes the correct mcp.json per host (Cursor url, Windsurf serverUrl, merge-preserving), opens the VS Code mcp/install deeplink, handles unknown hosts, and honors agentage.mcpUrl.
- P0: mergeServer now throws ConfigParseError on an unparseable/odd-shaped existing
  config; connectEditor refuses to write and offers Open/Copy instead (no data loss).
- P1: stripJsonc handles trailing commas string-aware (no more corrupting values
  containing ',}'); array/non-object guards.
- P1: fold VSCodium into the mcp/install deeplink; actionable manual fallback with
  Setup guide + recovery buttons; relabel Open-config button to the file name.
- P1: engines.vscode ^1.99.0 (was ^1.85.0) + README note that one-click needs 1.101+.
- P2: publish.yml tag<->version assert; ci.yml vsce-package gate.
- Tests: 13 core + 7 integration (clobber-safety, comma round-trip, VSCodium deeplink).
…-matcher, gh release on publish, drop stale vsce flag
vreshch and others added 3 commits June 21, 2026 12:02
- VS Code: native MCP provider (contributes.mcpServerDefinitionProviders +
  registerMcpServerDefinitionProvider, stable since 1.99) registered at activation
  (onStartupFinished) - the server appears in the MCP list automatically; VS Code
  runs OAuth on first use (one-time trust + sign-in; auth'd servers don't auto-start).
- Cursor/Windsurf: autoConnectForks writes their config silently + idempotently on
  activation (hasServerEntry skip; never clobbers; errors swallowed).
- Manual command kept for re-connect / unknown forks. engines stays ^1.99.0.
- Tests: 15 core + 3 provider + 10 connect-editor = 28. README/CHANGELOG/CONTRIBUTING updated.
Real-VS-Code smoke proving the packaged extension activates, registers
agentage.connectEditor, and contributes the default mcpUrl - the gap the
vitest unit tests (logic-only, mocked vscode) can't cover. Wired into CI
behind Xvfb; uploads the .vsix artifact for the e2e vscode project.
@vreshch vreshch merged commit 7565621 into master Jun 21, 2026
1 check passed
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