Glossary

JSON-RPC

JSON-RPC — a term used across the Credicorp public-API documentation. The definition below is written for engineers integrating the /public/v1 ring.

2 min read

2.0Protocol version
method/paramsCall shape

What it is

JSON-RPC is a lightweight remote-procedure-call protocol that encodes a call as JSON: a method name, a params object, and an id to correlate the response, which comes back as a result or an error.

In the Credicorp MCP server

The MCP endpoint accepts JSON-RPC 2.0 over POST. Clients call standard MCP methods — initialize, tools/list, tools/call — and receive results in kind. A plain GET returns the server card instead, for inspection without a JSON-RPC round trip.

Frequently asked questions

Do I write JSON-RPC by hand?

Usually not. An MCP-compliant client speaks it for you. You only craft it by hand when testing the endpoint directly with curl.

Funding for UK limited companies

Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.