Skip to content

Add CLI remote/API mode via MCP StreamableHTTP#47

Merged
G9Pedro merged 1 commit intomainfrom
cursor/workgraph-cli-remote-mode-c7d4
Mar 26, 2026
Merged

Add CLI remote/API mode via MCP StreamableHTTP#47
G9Pedro merged 1 commit intomainfrom
cursor/workgraph-cli-remote-mode-c7d4

Conversation

@G9Pedro
Copy link
Copy Markdown
Contributor

@G9Pedro G9Pedro commented Mar 15, 2026

Summary

  • add remote MCP client wrapper at packages/cli/src/remote-client.ts using StreamableHTTPClientTransport
  • add CLI remote-routing for --api-url/WORKGRAPH_API_URL and --api-key/WORKGRAPH_API_KEY across key commands
  • route these commands through MCP HTTP when remote mode is enabled: thread list/create/next/claim/done, status, brief, checkpoint, agent register/heartbeat/list, search, query, lens list/show
  • add workgraph remote test command to validate connectivity and show available tools/status snapshot
  • add missing MCP server tools required by remote flow (workgraph_agent_register, workgraph_agent_heartbeat, workgraph_agent_list, workgraph_search, workgraph_lens_list, workgraph_lens_show)
  • update CLI/MCP schema drift snapshots and add integration coverage in tests/integration/remote-cli.test.ts

Testing

  • pnpm --filter @versatly/workgraph-cli run typecheck
  • pnpm --filter @versatly/workgraph-mcp-server run typecheck
  • pnpm exec vitest run --config vitest.config.ts tests/integration/remote-cli.test.ts
  • pnpm exec vitest run --config vitest.config.ts packages/kernel/src/schema-drift-regression.test.ts -u
  • pnpm exec vitest run --config vitest.config.ts tests/integration/cli-compat.test.ts
Open in Web Open in Cursor 

Co-authored-by: G9Pedro <G9Pedro@users.noreply.github.com>
@G9Pedro G9Pedro marked this pull request as ready for review March 26, 2026 17:20
@G9Pedro G9Pedro merged commit cf68be8 into main Mar 26, 2026
2 of 3 checks passed
cursor bot pushed a commit that referenced this pull request Mar 26, 2026
Co-authored-by: G9Pedro <G9Pedro@users.noreply.github.com>
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.

2 participants