Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integrations/mcp-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Safety defaults:

The server speaks the MCP stdio transport: newline-delimited JSON-RPC (one
message per line, no `Content-Length` headers) and negotiates
`protocolVersion` during `initialize` (latest supported: `2025-06-18`).
`protocolVersion` during `initialize` (latest supported: `2025-11-25`).

The same ADB transport works with the OpenPhone SDK phone emulator:

Expand Down
2 changes: 1 addition & 1 deletion integrations/mcp-server/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
textContent,
} from "../runtime/protocol/openphone-runtime-tools.mjs";

export const SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18"];
export const SUPPORTED_PROTOCOL_VERSIONS = ["2025-11-25", "2025-06-18"];
const LATEST_PROTOCOL_VERSION = SUPPORTED_PROTOCOL_VERSIONS[0];
export const RUNTIME_PROTOCOL_INFO = runtimeProtocolInfo();
const SERVER_INFO = {
Expand Down
15 changes: 13 additions & 2 deletions tests/integrations/runtime-mcp-contract.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ const fakeTransport = {

{
// A supported client protocolVersion is echoed back.
const response = await handleRequest({
jsonrpc: "2.0",
id: 1,
method: "initialize",
params: { protocolVersion: "2025-11-25" },
}, { transport: fakeTransport });
assert.equal(response.result.protocolVersion, "2025-11-25");
}

{
// Older supported client protocolVersions are still echoed back.
const response = await handleRequest({
jsonrpc: "2.0",
id: 1,
Expand Down Expand Up @@ -206,14 +217,14 @@ const fakeTransport = {
id: 1,
method: "initialize",
params: {
protocolVersion: "2025-06-18",
protocolVersion: "2025-11-25",
capabilities: {},
clientInfo: { name: "contract-test", version: "0.0.0" },
},
});
const initialize = await nextResponse();
assert.equal(initialize.id, 1);
assert.equal(initialize.result.protocolVersion, "2025-06-18");
assert.equal(initialize.result.protocolVersion, "2025-11-25");
assert.equal(initialize.result.serverInfo.name, "openphone-runtime");
assert.equal(initialize.result.serverInfo.runtimeProtocol.name, "openphone-runtime-protocol");
assert.equal(initialize.result.serverInfo.runtimeProtocol.min_version, 1);
Expand Down
Loading