SI Agent News
DevelopingClaudeAgents

Nitrobase turns one locked route into a 65-tool server for AI agents

Nitrobase 0.2.0 builds its AI-agent server straight from its existing API, and tokens only see the tools they are allowed to use.

Sources: 1 outlet · First: DEV Community

65MCP tools generated from 66 REST routes

The short version

Why it matters

Giving an AI agent real control over servers is only reasonable if the system itself limits what the agent can do. Nitrobase shows one concrete way to do that: build agent tools from the existing API, hide what a token cannot use, and keep dangerous powers out of the default presets. If you build or pick an agent tool, these are good questions to ask.

From one locked door to a full server

Nitrobase is a self-hosted platform for deploying apps and managing servers and databases. As dev.to reported in a post by its author, version 0.2.0 changes how it works with AI agents. Earlier, its MCP support was a single guarded route that forwarded to Supabase Studio's MCP endpoint and returned a 403 Forbidden error by default.

Now Nitrobase runs its own MCP server at /api/mcp. MCP, the Model Context Protocol, is a shared standard that lets AI tools such as Claude Code or Cursor call outside functions in a predictable way. The server exposes 65 tools for deploying Git apps, creating and querying databases, editing environment variables, managing domains, reading logs and running backups.

One API, two front doors

The author's main design point is that there is no separate backend for agents. Hand-written wrappers around an existing API tend to drift, so validation rules, login checks and response formats slowly stop matching. Nitrobase avoids this by generating the MCP tools automatically from the same registry that defines its REST API, which is the ordinary web interface other software uses to talk to it.

That registry has 66 routes, and 65 become tools. Only streaming routes are skipped. Names are converted mechanically, so a route called listServers becomes list_servers. If a route cannot be converted cleanly, the build throws an error and the automated checks catch it before the code is merged.

Every tool call also goes through the same login check and the same execution path as a normal API call. The author says this means rate limits, team separation and audit logs apply equally to agents and to regular API users. Tools are labeled by type too: read-only routes are marked as safe to read, while anything that changes data is marked as potentially destructive unless the route says otherwise.

The server also gives agents written guidance. Slow operations such as deploy, restart, backup and create return a job ID that the agent checks with get_job. The agent is told to confirm with the user before using non-read-only tools on production apps.

Hiding tools the agent cannot use

Security starts before any tool is called. When an agent connects, the server checks the permissions on its token. If the token lacks the permission a tool needs, that tool is not listed at all. The agent never sees it and cannot try to call it.

Nitrobase also ships two presets for AI agent tokens. The read-only preset can view servers, apps, databases, backups and monitoring. It is narrower than the human read-only preset, leaving out SSH keys, team membership and audit logs.

The operator preset adds the ability to deploy, edit environment settings, manage app sources and domains, manage and write to databases, and create backups.

Just as important is what both presets omit:

The server also works one request at a time. Each POST creates a short-lived server tied to the caller's token and handles a single message. Batched requests, which bundle many calls into one, are rejected, so a single rate-limited request cannot carry 50 tool calls. The author notes batching was removed from the MCP spec in 2025-06-18.

What agents can do in 0.2.0

Of the 65 tools, 42 are new in this release. There are 15 for Git apps, 16 for standalone databases and their links to apps, 6 for environment settings, secrets and ports, and 5 for domains. Examples include preflight_git_app, rollback_git_release, query_database, update_app_env and add_app_domain.

Together with the existing server, backup and monitoring tools, an agent could inspect a repository, set up a Postgres database, link it to an app, attach a domain, deploy a commit and watch the job until it is healthy. Each step is a typed tool with defined inputs.

Connecting is meant to be easy. Nitrobase generates copy-and-paste setup snippets for Claude Code and for Cursor. It strips usernames, passwords, query strings and fragments from the endpoint address it builds. When a snippet would be saved to a file, it warns that the file holds a live access token.

This is the author's own description of the project. We have not tested Nitrobase, and the post does not report independent testing or real-world use.

What to watch

Try it

If you use or build an MCP server, check three things: can a token see only the tools it may use, are secret-reveal and delete rights left out of default roles, and do agent calls reach the audit log?

Sources

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

Listen to the AI Wire headlines

Listen to the AI Wire

Listen to our daily AI shows every morning: on your commute, in the shower, wherever you are

Listen to the daily shows

Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Spot a mistake? Corrections.

More AI news