Examples

SvelteKit Full Stack

Learn how to deploy a full-stack SvelteKit app with PostgreSQL using Ink MCP.

Create an Ink account and connect MCP

Make sure you have an Ink account and have connected Ink MCP to your agent. There are two ways to connect:

  • OAuth — authenticate through a browser flow, no keys to manage
  • Token — create an API key at ml.ink/account/api-keys

See Quick Start for full setup instructions.

Verify the connection

Once the MCP server is connected, confirm your agent can reach it by asking it to check.

Prompt

Do you have Ink MCP connected?

Build the app

Ask your agent to build a SvelteKit app with a database. The agent will deploy a PostgreSQL database via template and build the app with server-side form actions.

Prompt

Build a SvelteKit app with server-side form actions for a contact directory. Include search, create, and delete operations with a PostgreSQL database.

Deploy with Ink

The agent deploys a PostgreSQL database via template first, then deploys the SvelteKit app with the database credentials as environment variables.

Prompt

Deploy to Ink

Tool Call
(
  : ,
  : 
)
Tool Call
(
  : ,
  : ,
  : ,
  : ,
  : {
    "DATABASE_URL": "postgresql://user:pass@contacts-db.ml.ink:5432/contacts"
  }
)

Visit your app

Ink returns a live URL once the build completes. Your SvelteKit app is connected to a managed PostgreSQL database.

Check logs and metrics (optional)

Ask your agent to pull build logs, runtime logs, or metrics for your deployed service.

Prompt

Check metrics and logs

That's it — your full-stack SvelteKit app is deployed with a managed database. From here you can add a custom domain, explore database templates, or explore more examples.

On this page