Clavue · MCP
Clavue
数据与分析MCP-ServerRecommended

PostgreSQL and Clavue

Inspect PostgreSQL schemas, analyze slow EXPLAIN plans, and author safe migrations inside Clavue.

#db#sql
Einzeilige Installation (Clavue CLI / TUI)CLI / TUI
clavue plugin install postgres@plugins --trust

Discover ID

postgres@plugins

Marketplace

plugins · vlatest

CLAVUE-PRODUKTFAMILIE

Einsatz über alle 6 Clavue-Produktlinien

Ein gemeinsamer Discover-Katalog und ein Konto für CLI / TUI, imux IDE, Clavue GUI, Chat, Bot und OpenAI-kompatible API.

Clavue · CLIPrimary install & runtime

Clavue CLI / TUI

Install PostgreSQL once via iclavue in your terminal and invoke it directly in interactive TUI sessions or scripts.

  1. 01Run `npm i -g iclavue && clavue login` to sign in.
  2. 02Run `clavue plugin install postgres@plugins --trust` to install and trust the integration.
  3. 03Launch `clavue` in your project directory or run `clavue plugin list` to confirm.
CLI install & verify
clavue plugin install postgres@plugins --trust
clavue plugin list
imux · IDEmacOS AI command center

imux IDE

imux shares your local Clavue plugin config—combining PostgreSQL context with workspace files, Git diffs, split terminals, and the built-in browser.

  1. 01Confirm your Clavue plugin/MCP setup in an imux terminal pane or Settings → Agent / MCP.
  2. 02Invoke PostgreSQL inside imux Agent Chat to pull context alongside local repo edits.
  3. 03Review generated diffs in the imux Changes panel and verify before keeping.
imux Agent Chat prompt
Use PostgreSQL to gather live context, cross-check against our workspace files and git diff, and propose scoped edits before applying.
Clavue · GUIDesktop workbench (Mac / Win)

Clavue GUI

Clavue GUI reads the same Discover catalog—enable PostgreSQL per project visually, inspect tool-call timelines, and manage approvals without editing raw JSON.

  1. 01Open Clavue GUI → Discover and search for `postgres@plugins`.
  2. 02Enable it for the target project and bind any scoped environment credentials.
  3. 03Run tasks in the GUI timeline with visual approval cards for sensitive actions.
GUI Discover search key
postgres@plugins
Clavue · ChatBrowser planning & specs

Clavue Chat

Use the same membership on chat.clavue.com to browse Discover, draft specs and prompts tailored for PostgreSQL, and hand off execution to CLI / imux / GUI.

  1. 01Locate PostgreSQL in Chat's Discover drawer and copy its install command.
  2. 02Draft architecture specs, query plans, and acceptance criteria with `clavue` in the browser.
  3. 03Hand off the verified plan to Clavue CLI or imux for local execution.
Chat planning prompt
Help me design a least-privilege integration plan for PostgreSQL with clear input/output contracts and 3 verification gates.
Clavue · BotAutonomous staff & routines

Clavue Bot

Bind PostgreSQL into Clavue Bot recurring routines or cloud-computer tasks for automated digests, triage, and checks with explicit approval gates.

  1. 01Attach a workspace runtime or cloud computer that has the required scoped credentials.
  2. 02Create a scheduled or triggered Routine using PostgreSQL for read-only collection and summarization.
  3. 03Gate external writes or mutations behind explicit approval rules.
Bot routine instruction
Every weekday at 09:00, use PostgreSQL (read-only) to collect the last 24h events, flag anomalies, and post a 5-bullet digest.
Clavue · ModelsOpenAI-compatible API & CI

Clavue Models & API

Pair PostgreSQL tool schemas with Clavue Models & API (api.clavue.com/v1) function calling in CI pipelines, scripts, and custom backends.

  1. 01Create an API key in Account and point your SDK base URL to `https://api.clavue.com/v1`.
  2. 02Call `clavue` (or `clavue-5.5` / `clavue-2.1`) with the tool schemas exposed by PostgreSQL.
  3. 03Execute tool calls in your runner and return `tool` role outputs to close the loop.
API tool-calling example
curl https://api.clavue.com/v1/chat/completions \
  -H "Authorization: Bearer $CLAVUE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"clavue","messages":[{"role":"user","content":"Plan next task with postgres"}]}'

WORKFLOW

Empfohlener produktübergreifender Ablauf

STEP 01Clavue Chat

Scope goals & permissions first

Use Chat to define least-privilege permissions, input/output contracts, and acceptance checks for PostgreSQL.

STEP 02CLI / TUI

Install once & run a read-only smoke check

Install with `clavue plugin install` and verify tool discovery and latency with a read-only call.

STEP 03imux IDE / GUI

Deliver inside workspace context

Pair PostgreSQL with local code, terminal tests, and diff review inside imux IDE or Clavue GUI.

STEP 04Bot & API

Promote to Bot routines or CI

Turn proven workflows into scheduled Clavue Bot digests or `api.clavue.com/v1` automation.

PRAXIS & PROMPTS

Häufige Szenarien & Prompt-Vorlagen

imux IDE / CLI

Slow query EXPLAIN diagnosis

Spot sequential scans and missing indexes without modifying data.

Prompt-Vorlage
Inspect the schema and indexes via Postgres MCP, run a read-only EXPLAIN on this query, and recommend minimal indexes.
Clavue GUI / CLI

Zero-downtime migration authoring

Draft reversible schema migrations grounded in real table constraints.

Prompt-Vorlage
Read the current Postgres tables and foreign keys, then draft an additive migration with lock-risk notes.
Clavue Bot

Read-only KPI digest

Generate recurring read-only operational summaries.

Prompt-Vorlage
Run read-only aggregate queries for the past 7 days and summarize trends in a concise Markdown report.

BEST PRACTICES

Sicherheit & Stabilität im Betrieb

✓Enforce a read-only DB role

Bind a read-only PostgreSQL role with a strict statement_timeout whenever connecting to staging or production.

✓Start read-only, gate every mutation

Validate PostgreSQL with read-only credentials first and require human confirmation before any external write, delete, or publish step.

✓Scope credentials per project

Bind tokens and connection strings to the narrowest project or workspace scope possible and keep secrets in environment variables, never in prompts.

✓Split planning and execution across the family

Draft specs and acceptance criteria in Clavue Chat, then execute against real files, tests, and Git diffs inside imux IDE, Clavue GUI, or CLI / TUI.

✓Bound tool payload size

Pass explicit filters (date windows, path prefixes, page limits) so tool responses stay crisp and leave plenty of room in the context window.

FEHLERBEHEBUNG

Häufige Fragen & Checks

Tools do not appear in imux or CLI after running `clavue plugin install postgres@plugins --trust`?

Verify `clavue login` is active and run `clavue plugin list` to confirm installation. In imux IDE, start a fresh Agent Chat turn or refresh Settings → Agent / MCP.

Why does the web catalog not install directly into my machine?

For security isolation, the web catalog only browses metadata and builds install commands. Actual installation, credential binding, and process execution happen inside Clavue CLI, GUI, or imux.

How do I debug intermittent auth errors or timeouts?

Confirm the required environment variables are exported in your shell, test a narrow read-only query in CLI first, and verify token scope.

ÖKOSYSTEM

Ähnliche Integrationen