Rezin Core Rezin Core Docs Sign in

Tools

The connector for AI assistants

Rezin Core has a connector that speaks the Model Context Protocol (MCP), so an AI assistant or coding tool that supports MCP can work on your projects: list tables, run SQL, apply migrations, set secrets, read the audit trail, deploy and test functions.

Addresshttps://api.rezincore.com/mcp
Sign-inConnect by signing in (OAuth 2.1, the assistant sends you to the console to agree), or a personal access token as a bearer token: Authorization: Bearer rzt_…
TransportStreamable HTTP: one JSON-RPC request per POST, one JSON answer

Read this first

Important. An assistant you connect is an outside service. What it reads through the connector (rows, table names, log lines) goes to whoever runs that assistant. Do not connect one to a project that holds health information, or any other data you may not share with that provider.

  • Give it the least it needs. One project, look only, only the parts it will use. Allow changes or deploying functions only for the session that needs it, then disconnect.
  • The connector cannot read a secret's value, cannot reach another client's project, cannot reach the platform's own tables, and cannot do anything your account cannot.
  • Everything it does is on the project's Activity → Record page under your name, marked as coming through the connector.

Connect by signing in

Give your assistant the address https://api.rezincore.com/mcp and nothing else. An assistant that supports MCP authorization will:

  1. Open the Rezin Core console in your browser, where you sign in as usual (including your authenticator code).
  2. Show you a page naming the program that is asking, where you choose:
    • Look only, or look and change.
    • What it reaches: chosen companies and projects, or everything you can reach. Nothing is ticked to begin with.
    • Parts, each on or off: your account and companies, database, functions, files, secrets, record of activity, documentation.
    • May deploy functions: off unless you tick it. It needs "look and change" and the Functions part.
  3. Send you back to the assistant when you press Connect. Refuse sends you back with nothing granted.

The assistant is shown only the tools inside the parts you chose. A tool outside them is not listed and, if called by name, answers "No such tool".

A connection lasts 180 days. Its access token is replaced every hour by the assistant itself. See your connections, when each was last used, and Disconnect any of them under Your account → Connected assistants. A disconnected assistant stops at once.

Rezin Core staff accounts cannot connect an assistant.

For people building a client

Protected resource metadatahttps://api.rezincore.com/.well-known/oauth-protected-resource/mcp (also named in the WWW-Authenticate header of a 401)
Authorization server metadatahttps://api.rezincore.com/.well-known/oauth-authorization-server
RegistrationDynamic client registration at POST https://api.rezincore.com/oauth/register. Public clients only (token_endpoint_auth_method none)
Authorizationhttps://console.rezincore.com/oauth/authorize, authorization code with PKCE (S256 only)
TokenPOST https://api.rezincore.com/oauth/token: authorization_code and refresh_token. The refresh token is replaced on every use
RevocationPOST https://api.rezincore.com/oauth/revoke
Return addresseshttps addresses, http on localhost or 127.0.0.1 (any port), or an application's own scheme
resourcehttps://api.rezincore.com/mcp. A token from here works only at the connector

An authorization code lasts 60 seconds and works once. Showing a code a second time closes the connection it opened.

Connect with a token

Any MCP client that supports HTTP servers with a bearer token works. The shape most tools use:

{
  "mcpServers": {
    "rezin-core": {
      "type": "http",
      "url": "https://api.rezincore.com/mcp",
      "headers": { "Authorization": "Bearer ${REZIN_TOKEN}" }
    }
  }
}

Keep the token in an environment variable or the tool's own secret store, not in a file you commit.

Tools

ToolWhat it doesNeeds
list_projectsThe projects the token reaches, with each project's ID, its database schema and the role its application runs asalways
list_tablesA project's tables with their columns, whether row-level security is on, and how many rules each hasDatabase
run_sqlSQL inside one project. Read-only unless write is true. At most 1,000 rows come back.Database; change for write
list_migrationsMigrations already applied, by nameDatabase
apply_migrationOne migration, in a single transaction, recorded so it is never applied twiceDatabase, change
list_secret_namesThe names of a project's secrets. Never values.Secrets
set_secretStore or replace a secret. The value cannot be read back.Secrets, change
get_logsThe newest entries of the project's audit trail: what happened, when, and to what kind of thing. No statements or values.Record of activity
list_filesThe files in a storage bucket: names and sizes, not contentsFiles
list_functionsThe project's functions: name, whether each is on, its version, timetable, and how its last day of runs wentFunctions
get_functionOne function's current code and settingsFunctions
deploy_functionStore new code as a function's next version and make it live, creating the function if newFunctions, change, deploy
update_functionChange a function's settingsFunctions, change, deploy
invoke_functionRun a function once as a test and return its answerFunctions, change
get_function_logsHow a function's recent runs ended and what it printedFunctions
delete_functionRemove a function and all its versions and logsFunctions, change, deploy
whoamiWhat this connection may do: its parts, whether it may change things or deploy functions, and when it endsalways
list_companiesYour companies, your role in each, and how many projects each hasYour account and companies
search_docsSearch this documentation and get the best matching sections with their addressesDocumentation
read_docOne documentation page as MarkdownDocumentation

Arguments

ToolArguments
list_projectsnone
list_tablesproject
run_sqlproject, sql, write (optional, default false)
list_migrationsproject
apply_migrationproject, name (for example 0003_add_orders.sql), sql
list_secret_namesproject
set_secretproject, name (capitals, digits and underscores), value, description (optional)
get_logsproject, limit (optional, 1 to 500)
list_filesproject, bucket, prefix (optional), organization (optional; the project's first if left out)
list_functionsproject
get_functionproject, name
deploy_functionproject, name (lowercase letters, digits and dashes), code (one JavaScript module)
update_functionproject, name, and any of enabled, requireUser, timeoutSeconds (1 to 60), everyMinutes (or null for none), secrets (a list of names), version
invoke_functionproject, name, body (optional JSON text), method (optional; POST by default)
get_function_logsproject, name
delete_functionproject, name
whoami, list_companiesnone
search_docsquery
read_docpath (for example database/row-level-security)

project is always the project ID: twenty lowercase letters, as list_projects gives it.

SQL runs as the project's own confined database role, exactly as the console's SQL workspace does. A table the assistant creates starts closed to your application until a row-level security rule exists.

Technical notes

  • Methods: initialize, ping, tools/list, tools/call. Notifications are accepted and get no answer.
  • Protocol versions 2025-06-18, 2025-03-26 and 2024-11-05 are accepted.
  • No long-lived stream and no session is kept between requests. GET /mcp answers 405.
  • A batch of up to 20 requests in one POST is answered in order.
  • A missing or wrong token answers HTTP 401 with WWW-Authenticate: Bearer.
  • A failed tool call comes back as a result with isError: true and the reason in words, not as a protocol error.

Try it with curl:

curl -s https://api.rezincore.com/mcp -H "authorization: Bearer $REZIN_TOKEN" \
  -H "content-type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_projects","arguments":{}}}'

This page as Markdown · llms.txt · Rezin Core is in development and available by invitation.