# json_rpc_2 (Pub package)

> Utilities to write a client or server using the JSON-RPC 2.0 spec.

- Version: 4.1.0
- Released: 2026-02-18
- License: License unknown
- Monthly downloads: 9,777,589
- Source repository: https://github.com/dart-lang/tools ([in the GitHits index](https://index.githits.dev/repositories/github.com/dart-lang/tools/))

## Pages

- [json_rpc_2 on GitHits](https://index.githits.dev/packages/pub/json_rpc_2/)
- [Direct dependencies of json_rpc_2 4.1.0](https://index.githits.dev/packages/pub/json_rpc_2/4.1.0/dependencies/)
- [Security advisories of json_rpc_2 4.1.0](https://index.githits.dev/packages/pub/json_rpc_2/4.1.0/security/)
- [Documentation of json_rpc_2 4.1.0](https://index.githits.dev/packages/pub/json_rpc_2/4.1.0/docs/)

## Use it from a coding agent

GitHits gives coding agents version-aware access to json_rpc_2: they can search, grep and read its source and documentation, and check its dependencies and security advisories, through MCP or the CLI instead of guessing from training data.

Connect an agent with one command, which detects installed agents, configures them and signs in:

```sh
npx githits@latest init
```

- [Remote MCP server](https://mcp.githits.com) (Streamable HTTP)
- [Agent documentation index](https://docs.githits.com/llms.txt)
- [API overview](https://docs.githits.com/api/overview)
- [Explore the GitHits index](https://index.githits.dev/)
