Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Agent Adapter

MCP server by WaniWani-AI Verified · npm:@waniwani

Turns a WaniWani agent runtime session into an AI SDK UI message stream and serves the /agent/v1 routes an MCP server mounts. Built for teams that run WaniWani's website chat next to their own MCP server.

  • Score 82
  • 0 stars
  • 1.4k a week
  • Apache-2.0
  • Updated

Install Agent Adapter

Built from the published package, never by AI.

claude mcp add agent-adapter -- npx -y @waniwani/agent-adapter

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Agent Adapter in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-adapter block.

About

@waniwani/agent-adapter sits between a browser and the WaniWani agent runtime. It converts a runtime session into the AI SDK UI message stream that the WaniWani SDK chat embed reads, and it ships the /agent/v1 routes that embed expects. The package has a framework-free core entry and an Express router that an MCP server built on Skybridge can mount beside its own /mcp route.

The router handles turns, cancellation, configuration, tools, resources, analytics events and health checks. Browsers present the environment's public key, and every non-GET request needs an Origin from an allowlist. The runtime is a separate Eve agent image that fetches the tenant's published prompt, model and channels from WaniWani. It suits teams that self-host WaniWani's website chat or use the hosted runtime.

Written from the project's README and checked against it.

Tools it gives your assistant

  • POST /Runs a chat turn and streams the reply as a UI message stream.
  • POST /cancelStops the session's current turn, such as when a user presses Stop.
  • GET /configServes the configuration for the agent.
  • GET /toolsLists the tools the agent exposes to the model.
  • POST /toolRoute for calling a tool on behalf of the agent.
  • GET /resourceServes a resource to an iframe, which can pass the public key as ?token=.
  • POST /eventsForwards widget analytics to WANIWANI_API_URL.
  • GET /healthReports the health of the agent runtime.

What you need

  • An MCP server built on Skybridge
  • express, cors and @modelcontextprotocol/sdk as peer dependencies
  • A WaniWani environment API key for self-hosted use
  • Docker, if you run the agent image yourself

Try asking

  • Mount the WaniWani agent routes on my MCP server
  • Stream a chat reply from the WaniWani agent to my browser
  • Stop the current agent turn for a session

Good to know

  • The router allows sixty requests a minute per client.
  • The hosted runtime does not mount the router, because it does not hold an environment key.
  • After a restart, a resumed turn can pair an older prompt with a newer model until it ends.
  • Cached configuration keeps working through an outage of under ten minutes.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Agent Adapter

All alternatives →

Compare with Jitsu, Vexa or Linkedin MCP server

Agent Adapter: common questions

Can I run it without the hosted WaniWani runtime?

Yes. The source describes a self-hosted deployment that holds its environment's own key and serves that one environment. Setting both or neither credential refuses to start.

Which routes does the router serve?

It serves POST /, POST /cancel, GET /config, GET /tools, POST /tool, GET /resource, POST /events and GET /health under /agent/v1.

How are browser requests checked?

Browsers send the environment's public key, which is compared in constant time. Every non-GET request must carry an Origin on the allowlist.

How do I install Agent Adapter?

In Claude Code run claude mcp add agent-adapter -- npx -y @waniwani/agent-adapter. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Agent Adapter the official server?

Agent Adapter is published by npm:@waniwani from its verified domain in the official MCP Registry.

Is Agent Adapter free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Agent Adapter safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Agent Adapter?

Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.

Does Agent Adapter work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Agent Adapter Install

Add to stack

Loading.