Skip to content

About

AI agent stack template: Bun agent + MCP tool server + Postgres + NATS. Starter for flisk project agent-stack.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Flisk Agent Stack

Uses Flisk CLI

Starter landscape for AI agents on Flisk: a Bun agent resource, an MCP tool server, Postgres, and NATS.

Prerequisites

  • Docker running
  • Tilt installed
  • Bun installed
  • Flisk CLI

Quick start

Repository-pinned CLI (optional): Run bun install from the repository root to install the version pinned in package.json. Use bun run flisk:project to initialize project config, bun run flisk:dry-run to preview startup, or bun run flisk:up -- <stack> to start a stack. The global npm and standalone binary installation paths remain available.

git clone https://github.com/flisk-sh/flisk-agent-stack.git
cd flisk-agent-stack
flisk project --yes
flisk up

Or from the CLI:

flisk project agent-stack
cd flisk-agent-stack
flisk up

Landscape

Stack Resource Type Notes
agents agent-migrator migrator Creates the flisk_agent_sessions table once, before the agent starts
agents agent agent Custom runtime, durability: postgres: each turn is checkpointed in Postgres
agents tools mcp MCP tool server (Streamable HTTP at /mcp), one echo tool to replace
agents postgres database Checkpoint store (services/platform/database-management)
agents nats broker Messaging (services/platform/messaging), for agents that queue work

Try the agent

Once flisk up agents is running, find the agent's URL with flisk networks and send turns with the x-session-id header. Each session keeps its transcript in Postgres, so it survives a restart of the agent:

AGENT_URL=<the agent URL from flisk networks>
curl -s -X POST -H 'x-session-id: demo' -H 'content-type: application/json' -d '{"input":"hello"}' "$AGENT_URL/turn"
curl -s -H 'x-session-id: demo' "$AGENT_URL/session"
curl -s "$AGENT_URL/sessions"

/session returns the stored messages, including a { "role": "tool", "name", "input", "output", "at" } entry for each tool call (the placeholder turn calls echo once). GET /sessions lists every stored session with its turn count.

/ready answers 503 while the checkpoint store is unreachable. The replacement for the placeholder turn lives in runTurn in services/agents/agent/src/index.ts.

Scaffold more with:

flisk resource my-agent --type agent --stack agents --durability files
flisk resource my-tools --type mcp --stack agents

See flisk and the website llms.txt for the full contract.

About

AI agent stack template: Bun agent + MCP tool server + Postgres + NATS. Starter for flisk project agent-stack.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages