# Wisp MCP server

Build, test, publish and debug Wisp projects from Claude Code, Cursor or any MCP client with Wisp's own MCP server.

Wisp's own MCP server lets your AI coding tool work with your Wisp projects: create projects and functions, write code, set config, publish, call functions, read logs — or hand a request to Wisp's assistant.

This is different from [your project's MCP server](/mcp-server-for-your-project), which exposes **your** functions as tools.

## Connect

1. Create a workspace API key in **Settings → API keys**, with the scopes you want to allow. See [Authentication](/api/authentication).
2. Add the server to your client:

```bash Claude Code
claude mcp add --transport http wisp https://wispfn.com/api/mcp \
  --header "Authorization: Bearer wisp_sk_..."
```

```json Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "wisp": {
      "url": "https://wispfn.com/api/mcp",
      "headers": { "Authorization": "Bearer wisp_sk_..." }
    }
  }
}
```

The server needs the `Authorization` header, so use a client that can send headers (Claude Code, Cursor, VS Code, Gemini CLI, or your own agent).

Without a key, a client can connect and list the tools (the same information as this page), but every tool call needs the key. A wrong or expired key is rejected with `401`.

## What it can do

| Tool | What it does | Scope |
| --- | --- | --- |
| `list_projects` | List the workspace's projects | `projects:read` |
| `create_project` | Create a project | `projects:write` |
| `get_project` | Functions, settings and URLs of a project | `projects:read` |
| `get_function` | A function's code and settings | `functions:read` |
| `create_function` | Add a function with code (HTTP or not, MCP tool, before/after) | `functions:write` |
| `update_function` | Change code or settings, including the schedule | `functions:write` |
| `delete_function` | Delete a function | `functions:write` |
| `set_config` / `delete_config` | Manage variables and secrets | `config:write` |
| `set_mcp_server` | Turn the project's MCP server on or off | `projects:write` |
| `publish` | Publish the draft or roll back | `projects:deploy` |
| `invoke_function` | Run a function (draft or live) | `functions:invoke` |
| `get_logs` | Read the invocation log | `logs:read` |
| `ask_wisp` | Hand a request to Wisp's assistant | `assistant:chat` |

Full argument lists: [MCP tools reference](/api/mcp-tools).

## Example prompts

- "Create a Wisp project with a function that validates VAT numbers, test it with a few real ones, then publish."
- "Why is /checkout in my shop-api project returning 500s? Check the logs and fix it."
- "Ask Wisp to add a weekly report to analytics-api that runs every Monday."

Calls through `invoke_function` use [Run credits](/plans-and-credits#run-credits); `ask_wisp` uses AI credits.
