[KongchangAI]
Concept

JSON-RPC

JSON-RPC is a lightweight remote procedure call (RPC) protocol that uses JSON as its data exchange format. It allows clients to invoke methods on a remote server over a network and supports both request-response and notification (one-way message) communication patterns. The protocol is characterized by its simple structure, transport-layer independence, and cross-language compatibility, and can operate over multiple transport protocols including HTTP and WebSocket.

Core Facts

Timeline (last 90 days)

Oct 9

Negotiating a connection handshake on every execution incurs a CPU overhead that is unaffordable in high-frequency, short-task scenarios.

Unverified50%
Oct 9

Even with connection multiplexing via SSE, each tool call still requires completing a JSON-RPC-layer handshake and negotiation, which is fundamentally different from directly reusing a database driver connection pool.

Unverified50%
Oct 9

Wrapping database drivers inside JSON-RPC adds latency on the critical path.

Unverified50%
Oct 9

JSON-RPC has three indispensable steps in every interaction: serialization, network transmission, and deserialization.

Unverified50%
Oct 5

In stdio transport, MCP server logs must be written to standard error (stderr), because extraneous standard output will corrupt the protocol stream.

Unverified50%
Oct 5

A protocol error means the request itself is malformed (e.g., calling a non-existent tool name) and is returned as a standard JSON-RPC error.

Unverified50%
Oct 3

Moka's Inspector feature displays the complete details of each tool call, including the raw JSON-RPC request and response, token consumption count, and call time overhead.

Unverified50%
Oct 3

A JSON-RPC request contains a method, params, and a unique id, and the server returns a result or error corresponding to that id.

Unverified50%
Sep 25

The stdio transport sends and receives JSON-RPC messages by spawning a child process and using standard input/output streams, requiring no network ports.

Unverified50%
Sep 19

Communication protocols between agents (such as those based on JSON-RPC or specific agent communication layers) can complete requirement descriptions, capability announcements, quote generation, and contract confirmation within milliseconds.

Unverified50%

6 more timeline events

All Facts (20)

Verified

MCP采用客户端-服务器架构,基于标准化的JSON-RPC通信协议

90%
Verified

MCP基于JSON-RPC 2.0协议构建,支持请求-响应和通知两种消息模式

80%
Verified

By defining a unified JSON-RPC 2.0 communication protocol, MCP simplifies the M×N adaptation problem into M+N.

80%
Verified

The JSON-RPC 2.0 specification was first published by the JSON-RPC Working Group in 2010.

80%
Verified

LSP compresses the M×N relationship of editor-language integration into M+N, communicating through a standardized JSON-RPC protocol.

65%
Unverified

MCP协议中AI模型通过标准化的JSON-RPC调用来触发硬件操作

85%
Unverified

MCP通过标准化的JSON-RPC通信格式让模型调用外部能力,采用全量加载的设计哲学

85%
Unverified

MCP选择JSON-RPC而非REST或GraphQL,是因为JSON-RPC天然支持双向通信和异步调用,更适合模型与工具之间需要实时响应的交互场景

80%
Unverified

LSP communicates based on the JSON-RPC 2.0 protocol, and language servers typically run as independent processes, communicating with editors via stdin/stdout or TCP.

60%
Unverified

ACP is essentially a JSON-RPC-based protocol that typically communicates with subprocesses via standard input/output (stdio).

60%
Unverified

Negotiating a connection handshake on every execution incurs a CPU overhead that is unaffordable in high-frequency, short-task scenarios.

50%
Unverified

JSON-RPC has three indispensable steps in every interaction: serialization, network transmission, and deserialization.

50%
Unverified

Wrapping database drivers inside JSON-RPC adds latency on the critical path.

50%
Unverified

Even with connection multiplexing via SSE, each tool call still requires completing a JSON-RPC-layer handshake and negotiation, which is fundamentally different from directly reusing a database driver connection pool.

50%
Unverified

In stdio transport, MCP server logs must be written to standard error (stderr), because extraneous standard output will corrupt the protocol stream.

50%
Unverified

A protocol error means the request itself is malformed (e.g., calling a non-existent tool name) and is returned as a standard JSON-RPC error.

50%
Unverified

Moka's Inspector feature displays the complete details of each tool call, including the raw JSON-RPC request and response, token consumption count, and call time overhead.

50%
Unverified

A JSON-RPC request contains a method, params, and a unique id, and the server returns a result or error corresponding to that id.

50%
Unverified

The stdio transport sends and receives JSON-RPC messages by spawning a child process and using standard input/output streams, requiring no network ports.

50%
Unverified

Communication protocols between agents (such as those based on JSON-RPC or specific agent communication layers) can complete requirement descriptions, capability announcements, quote generation, and contract confirmation within milliseconds.

50%

Source Articles