/** * Landing-page APIs for MCP server endpoints. * * Exports the hooks a CLI-discovered `landing.tsx` uses to read server data, * the client install links it and other pages can show, and the built-in * HTML page used when a project has no `landing.tsx`. This module does not * import React. * * @packageDocumentation */ export { getInstallTargets } from "./install-targets.js"; export type { ChatGPTInstallTarget, ClaudeCodeInstallTarget, CursorInstallTarget, InspectorInstallTarget, InstallTargets, InstallTargetServer, VSCodeInsidersInstallTarget, VSCodeInstallTarget, } from "./install-targets.js"; export { __setLandingData, __withLandingData, useInstallTargets, usePromptList, useResourceList, useServerInfo, useToolList, } from "./landing-data.js"; export type { LandingData, LandingDataKey, LandingServerInfo, } from "./landing-data.js"; /** A tool shown in the landing page's primitives list. */ export interface LandingPageTool { /** Protocol-facing tool name. */ name: string; /** Optional human-readable tool title. */ title?: string; /** Optional tool description. */ description?: string; } /** A prompt shown in the landing page's primitives list. */ export interface LandingPagePrompt { /** Protocol-facing prompt name. */ name: string; /** Optional human-readable prompt title. */ title?: string; /** Optional prompt description. */ description?: string; } /** A static resource shown in the landing page's primitives list. */ export interface LandingPageResource { /** Resource URI. */ uri: string; /** Optional protocol-facing resource name. */ name?: string; /** Optional human-readable resource title. */ title?: string; /** Optional resource description. */ description?: string; } /** * Document head fields a `landing.tsx` sets with `export const metadata`. * * Every field is optional. A missing field keeps the default the server * derives from its name, title, description, and favicon branding. * * @example * ```tsx * import type { LandingMetadata } from "mcp-use/landing"; * * export const metadata: LandingMetadata = { * title: "Acme for Claude and Cursor", * description: "Connect Acme to your AI client in one step.", * icon: "acme.svg", * image: "og.png", * }; * ``` */ export interface LandingMetadata { /** Page `