#!/usr/bin/env bun /** * `shortlinks-mcp` — Model Context Protocol server exposing the shortlinks core * operations (domains, links, click stats) to AI agents. * * Transports: * shortlinks-mcp stdio (default; for editor/agent clients) * shortlinks-mcp --http Streamable HTTP on 127.0.0.1:8851 (shared service) * shortlinks-mcp --version print the package version and exit (also --help) * * Every tool routes through the shared client {@link Store}: the hosted * ApiStore (HTTPS `/v1` + bearer key) when the @hasna/contracts chain resolves * a credential; the on-box LocalStore SQLite only under the explicit * HASNA_SHORTLINKS_LOCAL=1 opt-in — never a silent default. With neither, the * bin FAILS CLOSED AT STARTUP: it exits non-zero naming the credential chain * before any transport starts. No DSN, no direct sqlite/fetch — same seam the * CLI uses. */ import { Server } from "@modelcontextprotocol/sdk/server/index.js"; export declare function buildServer(): Server;