JSON-RPC guide

The unified JSON-RPC 2.0 gateway — address, authentication, request shape, batching, event streams and error handling.

View as Markdown

Kernuq exposes its whole control plane through one JSON-RPC 2.0 gateway: POST /rpc. It shares one transactional domain service with MCP tools, the CLI and the console (100% UI–Tool parity).

Address and auth

  • Default: http://127.0.0.1:7680/rpc (loopback only)
  • The local owner needs no login; other callers send Authorization: Bearer <token>, issued by iam.create_token and revocable with iam.revoke_token.

Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "harness.get",
  "params": { "uri": "harness://ops/log-analyzer" }
}

Methods are named namespace.verb across 18 namespaces: system, cortex, agent, session, harness, formation, resource, provider, vfs, asset, sdui, event, bus, iam, org, vault, compute, prompt. See the API reference for every method.

Batching

Per JSON-RPC 2.0, send an array to batch calls; responses are matched by id.

Event stream

GET /events/sse pushes KIEP interaction events (notice, asset_ready, approval, choice, form_input) and kernel.entity.mutated:

const es = new EventSource('http://127.0.0.1:7680/events/sse')
es.addEventListener('kiep', (e) => console.log(JSON.parse(e.data)))

Reply to approvals, choices and forms with event.respond; mark as read with event.ack_read.

Other HTTP endpoints

Endpoint Purpose
GET /healthz Health, version, RSS
GET /cortex/stream Cortex conversation stream
ANY /mcp/v1 MCP Streamable HTTP
WS /acp/reverse ACP host reverse registration
POST /webhooks/* Ingress webhook channel
GET /vfs/raw · POST /vfs/upload Raw VFS streams and uploads

Errors

code Meaning
-32700 Parse error
-32600 Invalid request
-32601 Method not found
-32602 Invalid params
-32603 Internal error

KSP extension errors (not found, permission denied, approval required…) use negative codes and carry hints in error.data that agents can act on.

Try it live

The API reference includes a read-only sandbox on the Cloudflare edge you can call directly.

kernuq 1.0 Release Countdown

—Days
—Hours
—Minutes
—Seconds

告开发者:

kernuq还在打磨中,我希望发布一个 1.0 版本出来并且开源共享,后续即使版本不升级,用户也能自完善,并且每个运行的 kernuq 实例都是独一无二的生命体。

kernuq 发布以后 Agent开发这行也基本完蛋了,你截止目前看到的所有 Agent 形态,Chatbot,Coding Agent,Working Agent,Cloud Agent, Personal Agent,Swarm Agent 等等的形态都包含,并且实现更轻量更干净,都是一句话的事情,不是吹牛,此话保真,AI 真的是太强大了。

是的,没错,软件行业已经完蛋了, 前端、后端都完蛋了,Agent 开发行业也完蛋了,AI 寄生人类这个说法很游戏很科学,人类还乐此不彼的被 AI 驱使,没办法,这是宿命啊,无法阻挡。

你如果丢给 AI 这个网站的链接,然后许个愿,支付些许 token 费,接下来若干小时 AI 就会造出另外一个 kernuq.

但是,这除了浪费你的 Token,没有什么意义,赶在我的开源之前做出来发布,没意义,除了浪费 Token,喂养 AI,毫无意义,后面还要浪费时间精力来打磨,验证,审核,不如一起完善周边开源生态。当然,如果你要创建一个平行 kernuq,也欢迎一起交流,咱们肯定可以做一些生态共享的合作。

有了 REA,不开源也变开源,所以没必要违抗趋势,等等吧,就几天时间,多刷点红果,几天就过去了。

如果你有 Agent 开发的想法需要交流或者是中转站资源大佬,可以加微信联系,或加体验用户群交流

WeChat user group
WeChat user group
Personal WeChat
Personal WeChat