UNPKG

lokalise-mcp

Version:

The Lokalise MCP Server brings Lokalise's localization power to Claude and AI assistants—manage projects, keys, and translations by chat.

26 lines (25 loc) • 1 kB
/** * MCP Server Module * Main server orchestration and startup logic */ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import type { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; export type TransportMode = "stdio" | "http"; export type TransportInstance = StreamableHTTPServerTransport | StdioServerTransport; export interface ServerStartResult { server: McpServer; transport: TransportInstance; } /** * Start the MCP server with the specified transport mode */ export declare function startServer(mode?: TransportMode): Promise<ServerStartResult>; /** * Initialize and start the server with configuration validation */ export declare function initializeServer(mode?: TransportMode): Promise<ServerStartResult>; /** * Determine transport mode from configuration */ export declare function getTransportMode(): TransportMode;