Skip to content

The NappAI plugin for Claude Code

The NappAI plugin for Claude Code lets you build, test and fix NappAI flows and manage your account from the terminal, talking to Claude Code the same way you would talk to the dashboard’s AI Assistant.

It is free and its code is public: github.com/nappai-dev/nappai-plugin.

What it is for

  • For people who already work in Claude Code. You build the automation without leaving the terminal you code in, for example while you develop the application that will call the flow.
  • For long jobs. Building a project of several flows, migrating automations from n8n, Make or Zapier, or designing a RAG over your documents, with Claude Code working on your account.
  • With the same judgement as the assistant. Claude Code plans before touching anything, looks for the component that really exists, tests what it builds and asks permission before anything with real effects, because it follows the same instructions as the AI Assistant.

For example: “Build a NappAI flow that reads the emails with an invoice and saves the amounts in my Google sheet”, “This flow has been failing since yesterday, find out why and fix it” or “Bring this Make scenario into NappAI”.

How it works

The plugin brings two pieces together, and both are needed:

PieceWhat it bringsWhere it comes from
The instructions (skills)The how: planning, choosing components, building, testing, fixing. They are the same ones the dashboard’s AI Assistant works with.From the plugin, when you install it.
The tools (NappAI’s MCP server)The hands: reading the catalog, creating and changing flows, running them, reading their traces, managing the account.From your NappAI account, when you connect it with your API key.

With the plugin installed but not connected, Claude Code knows how to work in NappAI but cannot touch anything. That is why, when Claude Code opens, the plugin checks whether the server is connected and, if it isn’t, warns you and explains how to connect it. If it is connected, it says nothing.

The instructions come in by themselves when your request needs them; you don’t invoke them:

InstructionWhen it comes in
nappai-planAlways first: turns your request into a plan and asks for your go-ahead before touching the canvas.
nappai-researcherWhen it has to find out which component exists or what a service’s API really expects.
nappai-flow-builderTo build and configure: components, connections, fields, code and prompts.
nappai-fixerWhen the flow is built and fails: it runs it, reads the trace and corrects it.
nappai-importarTo bring a flow from n8n, Make or Zapier: it translates it, builds it and tests that it does the same. See Migrate to NappAI.
nappai-ragFor an agent that answers from documents: it chooses the retrieval techniques and shows they beat the basic one. See RAG.
nappai-vozFor voice agents: answering calls, switchboards, outbound calls, publishing and testing them.
nappai-plataformaFor the account outside the canvas: API keys, team, usage, sharing, credentials, environments and what depends on what.

And three commands:

CommandWhat it does
/nappai:connect [address]Connects the MCP server with your key. Running it again updates the key, for example after regenerating it.
/nappai:statusTells you whether the plugin is loaded, whether the server is connected and answers, and where the key comes from, without showing it.
/nappai:disconnectDisconnects the server. It doesn’t delete the key file.

What you need

  1. Claude Code installed.
  2. A NappAI API key. Create it in Settings → API Keys, ideally one just for this, so you can withdraw it without affecting anything else. See API keys.
  3. The address of NappAI’s MCP server: on NappAI in the cloud, https://api.nappai.tech/flow-editor-mcp/mcp. On your own installation it looks like https://<NappAI server>/flow-editor-mcp/mcp; if you’re not sure, ask your administrator.

Install

In your terminal:

Ventana de terminal
claude plugin marketplace add nappai-dev/nappai-plugin
claude plugin install nappai@napptilus

To have it update itself, turn it on once: in a Claude Code session open /plugin → Marketplaces → napptilus → Enable auto-update. Claude Code doesn’t update plugins that aren’t its own by itself. Without it, claude plugin update nappai@napptilus brings the new version by hand.

Connect your account

1. Save your API key in a file only you can read:

Ventana de terminal
mkdir -p ~/.nappai
printf '%s' 'PASTE_YOUR_API_KEY' > ~/.nappai/api-key
chmod 600 ~/.nappai/api-key

Use printf, not echo: echo leaves a line break at the end and the server would reject the key.

2. Connect it. Inside Claude Code:

/nappai:connect https://api.nappai.tech/flow-editor-mcp/mcp

It checks the key against the server before saving it, so a wrong key gives a clear message instead of a server that fails on every request. It registers it with a 10-minute timeout, because building or running a large flow can take longer than Claude Code waits by default.

3. Reopen Claude Code and check with /nappai:status that it is connected.

Using it

Ask Claude Code what you would ask the assistant, in your own words. It works like the AI Assistant:

  1. It proposes a plan and waits for your go-ahead.
  2. It asks what only you can decide: which folder to save the flow in and which credential to use.
  3. It builds the flow in your account. You see it appear in the dashboard, with a summary note on the canvas. If you don’t want it, tell it.
  4. It tests it and, if it fails, reads the trace and fixes it.

Anything with real effects (running against a service, publishing, scheduling, changing the account) is prepared without being applied and shows you the exact change; it is only applied if you say yes.

Security

  • It acts as you. It uses the account and role of whoever created the API key: what your role doesn’t allow, Claude Code can’t do either.
  • It is recorded. What it does appears in the activity log under your name, marked from an MCP client, and its runs count towards your usage.
  • The key doesn’t go through the conversation. The plugin reads it from the file or your configuration, never shows it (/nappai:status hides it) and doesn’t ask for it in the chat. Don’t paste it into the chat: what you write there stays in the conversation and is sent to the model with every message.
  • Where it is stored. In your Claude Code user configuration (~/.claude.json), which only your user can read. If you left the ~/.nappai/api-key file, there too.
  • If the key has leaked, regenerate or delete it in API Keys and run /nappai:connect again.
  • Open source. You can read everything the plugin runs in its repository. Only Napptilus publishes versions.

From Claude (the app and cowork)

In Claude, /nappai:connect isn’t used: NappAI is added as a custom connector and you sign in with your account. The steps are in From Claude and other apps. The plugin’s instructions also work there if your organization adds it to its library.

If something goes wrong

You seeWhat is happening and what to do
When Claude Code opens: “NappAI tools are NOT available”The plugin is installed but the server isn’t connected. Follow Connect your account.
The MCP rejected the credentialThe key isn’t valid for that server. It must be a NappAI API key, not another kind of token, and from the same NappAI the address points to.
Couldn't reach …The address doesn’t answer. Check it; if it belongs to an internal installation, you may need the VPN.
I can't find your platform API keyThe ~/.nappai/api-key file is missing. The message includes the commands to create it.
/nappai:status says it is connected, but Claude Code doesn’t see the toolsThe session was opened before connecting it. Reopen Claude Code.
It worked and has stopped connectingThe key has been regenerated or deleted. Save the new one and repeat /nappai:connect.
A long operation fails after 60 secondsThe server was registered without the 10-minute timeout. Repeat /nappai:connect, which adds it.

Uninstall

Ventana de terminal
claude mcp remove nappai --scope user # disconnects the server
claude plugin uninstall nappai@napptilus # removes the plugin
rm ~/.nappai/api-key # deletes the key, if you saved it in that file

If you installed it from your NappAI with curl, remove it with rm -rf ~/.claude/skills/nappai. And if you won’t use the API key any more, delete it in Settings → API Keys too.