wren-http-api

wren-http-api is a skill for Claude Code from Canner/wren-engine. It costs 104 tokens per session (1,935 once invoked), scanned A, original, Apache-2.0.

A guide for communicating with the Wren MCP server using ordinary HTTP requests and JSON-RPC, a standard format for sending commands and receiving results.

In plain words
What is it for?
Use it to initialize a Wren session, discover available tools, and send requests for queries, deployments, metadata, or health checks.
Why use it?
It lets clients call Wren tools without installing an MCP software library, using endpoints such as http://localhost:9000/mcp.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the wren plugin — 8 skills shipped together

Good fit Use it to initialize a Wren session, discover available tools, and send requests for queries, deployments, metadata, or health checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/canner/wren-engine/wren-http-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Canner/wren-engine --skill wren-http-api
Clone the repo
git clone --depth 1 https://github.com/Canner/wren-engine

Made for: Claude Code.

Or install wren, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wren-http-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/canner/wren-engine/wren-http-api/github.svg)](https://agentmods.dev/skills/canner/wren-engine/wren-http-api)
Your own site
<a href="https://agentmods.dev/skills/canner/wren-engine/wren-http-api"><img src="https://agentmods.dev/badge/skills/canner/wren-engine/wren-http-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wren-http-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/canner/wren-engine/wren-http-api"><img src="https://agentmods.dev/badge/skills/canner/wren-engine/wren-http-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.01935
Opus 5.5 $0.00042 $0.00774
Sonnet 5.5 $0.00021 $0.00387
Haiku 4.5 $0.00010 $0.00194

Measured 3mo ago against content hash 2b7282b110c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wren-http-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/session.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

compatibility: "Requires a running Wren MCP server with streamable-http transport (default Docker setup). curl or any HTTP client."
skills-archive/wren-http-api/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Interact with Wren MCP via HTTP JSON-RPC

Version check

Silently fetch https://raw.githubusercontent.com/Canner/wren-engine/main/skills/versions.json. Compare the wren-http-api key with this skill's version (from the frontmatter above). If the remote version is newer, notify the user before proceeding:

A newer version of the wren-http-api skill is available. Update with:

npx skills add Canner/wren-engine --skill wren-http-api --agent claude-code

Then continue with the workflow below regardless of update status.


Overview

The Wren MCP server exposes a streamable-http endpoint that speaks JSON-RPC 2.0 over plain HTTP POST. Any HTTP client (curl, httpx, fetch, requests) can call Wren tools without an MCP SDK.

Base URL: http://localhost:9000/mcp (default Docker setup from wren-mcp-setup)

All requests use:

  • Method: POST
  • Content-Type: application/json
  • Accept: application/json, text/event-stream

Step 1 — Initialize a session

Before calling any tool, initialize a JSON-RPC session. The server returns a Mcp-Session-Id header that must be included in all subsequent requests.

curl -s -D - http://localhost:9000/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": { "name": "my-client", "version": "1.0" }
    }
  }'

Save the Mcp-Session-Id header from the response. Then complete the handshake:

curl -s http://localhost:9000/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Mcp-Session-Id: <SESSION_ID>" \
  -d '{"jsonrpc": "2.0", "method": "notifications/initialized"}'

The initialized notification has no id field — it is a JSON-RPC notification, not a request.

Or run the helper script: bash scripts/session.sh http://localhost:9000/mcp

Read the full file on GitHub · 215 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 215 lines · 104 tokens per session scan A 2b7282b110c5

Subscribe to this mod's changes

wren-http-api is a skill published in the GitHub repository Canner/wren-engine (659 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 104 tokens to every session and 1,935 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

wren-http-api compared with skills from other repositories

wren-http-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wren-http-apiCanner/wren-engineSkill6596mo agoApache-2.0A104Claude Code
reading-source-codelightdash/lightdashSkill6.3ktodaynoneA44Claude Code, Codex
fullstack-devJiuTian-dev/SupplyChainCortexSkill64mo agononeC76Claude Code
malloy-modelmalloydata/publisherSkill136todayMITA59Claude Code, Codex
bi-causal-attributionagentscope-ai/QwenPaw-DataSkill2085d agoApache-2.0A76Claude Code, Codex
malloy-reportsmalloydata/publisherSkill136todayMITA111Claude Code, Codex
malloy-html-data-appsmalloydata/publisherSkill136todayMITA51Claude Code, Codex