Resources
Resources
Your agent provisions databases and infrastructure resources through MCP — connection credentials in seconds
Resources are managed infrastructure that your agent provisions through MCP tools. No manual setup, no dashboard clicking — your agent creates a database and gets connection credentials back immediately.
Available resources
How resources work
Your agent provisions resources using MCP tools. Each resource gets:
- A connection URL for your service to connect (e.g.,
libsql://your-db.turso.io) - An auth token for secure access
- Metadata like size, region, and hostname
Credentials are encrypted at rest and only accessible through MCP. Your agent passes them to services as environment variables.
Example: database + service in one prompt
Prompt
❯
Create a FastAPI backend with a SQLite database. Store bookmarks with title, URL, and tags.
Your agent will:
- Call
create_resource(name="bookmarks_db", type="sqlite")— getsdatabase_urlandauth_token - Write the FastAPI app with libsql client
- Call
create_servicewithDATABASE_URLandDATABASE_AUTH_TOKENas env vars - Return a live URL
Managing resources
| MCP Tool | Description |
|---|---|
create_resource | Provision a new database |
list_resources | List all provisioned resources |
get_resource | Get connection URL and auth token |
delete_resource | Permanently delete a resource |
See Resource Tools for full parameter reference.