@remcp/remcp 0.2.64 → 0.2.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remcp/remcp",
3
- "version": "0.2.64",
3
+ "version": "0.2.66",
4
4
  "description": "ReMCP device client: pair a computer with ReMCP and run the outbound-only agent that hosts the local MCP runtime.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "test": "node --test test/*.test.mjs"
23
23
  },
24
24
  "dependencies": {
25
- "@modelcontextprotocol/sdk": "^1.30.0",
25
+ "@modelcontextprotocol/client": "^2.0.0",
26
26
  "ws": "^8.21.3"
27
27
  },
28
28
  "repository": {
package/src/agent.mjs CHANGED
@@ -3,8 +3,8 @@ import { existsSync } from 'node:fs';
3
3
  import process from 'node:process';
4
4
  import { spawn } from 'node:child_process';
5
5
  import WebSocket from 'ws';
6
- import { Client } from '@modelcontextprotocol/sdk/client/index.js';
7
- import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
6
+ import { Client } from '@modelcontextprotocol/client';
7
+ import { StdioClientTransport } from '@modelcontextprotocol/client/stdio';
8
8
  import { VERSION } from './version.mjs';
9
9
  import {
10
10
  globalCliEntry,
@@ -191,7 +191,10 @@ export async function runAgent(options) {
191
191
  handleRuntimeExit('missing');
192
192
  return;
193
193
  }
194
- const client = new Client({ name: 'remcp-agent', version: VERSION });
194
+ const client = new Client(
195
+ { name: 'remcp-agent', version: VERSION },
196
+ { versionNegotiation:{ mode:'auto' } },
197
+ );
195
198
  const stdio = new StdioClientTransport({ command: process.execPath, args: [runtimeEntry], env: runtimeEnv(), maxBufferSize: RUNTIME_STDIO_BUFFER_BYTES });
196
199
  mcp = client;
197
200
  transport = stdio;
@@ -48,9 +48,12 @@ export async function diagnoseLocalRuntime(cfg) {
48
48
  return diagnosis;
49
49
  }
50
50
  try {
51
- const { Client } = await import('@modelcontextprotocol/sdk/client/index.js');
52
- const { StdioClientTransport } = await import('@modelcontextprotocol/sdk/client/stdio.js');
53
- const client = new Client({ name: 'remcp-doctor', version: VERSION });
51
+ const { Client } = await import('@modelcontextprotocol/client');
52
+ const { StdioClientTransport } = await import('@modelcontextprotocol/client/stdio');
53
+ const client = new Client(
54
+ { name: 'remcp-doctor', version: VERSION },
55
+ { versionNegotiation:{ mode:'auto' } },
56
+ );
54
57
  const stdio = new StdioClientTransport({ command: process.execPath, args: [entry], env: { ...process.env }, maxBufferSize: 4 * 1024 * 1024 });
55
58
  const stderr = [];
56
59
  stdio.onerror = error => stderr.push(String(error?.message || error));