API reference
@salmonui/mcp
44 exported symbols: 7 functions, 4 classes, 22 interfaces, 3 types and 8 constants. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/mcp';Functions
checkImportsChecks every @salmonui/* import of a module: the specifier is a public entry, each named import is exported by it, no private /internal/* or removed package is…defaultIndexPathThe bundled index file, or the file named by SALMONUI_MCP_INDEX.loadIndexReads and checks an index file. Throws with an actionable message when it is missing or of another format.migrateSpecifierThe replacement of a specifier of a removed package, or null when there is no single one (@salmonui/react root: each name has its own entry).parseImportsEvery static, side-effect, re-export and dynamic import of a module source, in source order.serveStdioServes server on the streams until the input ends; resolves after the last response is flushed.tokenizeLower-case word stems of a text. Identifiers also yield their camelCase and kebab-case parts (onValueChange -> onvaluechange, on, value, change).
Classes
Bm25A BM25 index over documents made of weighted fields.ExportsMapLookups over the index used by the checker and the tools.McpServerA Salmon UI MCP server bound to one index.SalmonToolsThe tools bound to one index; lookup structures are built lazily, once.
Interfaces
ImportProblemImportReportImportedNameIndexDemoIndexDocIndexEntryIndexFamilyIndexMemberIndexPackageIndexParamIndexSectionIndexSymbolJsonRpcErrorJsonRpcResultMcpIndexParsedImportServerOptionsStdioInputThe parts of a Node readable stream the transport uses (process.stdin).StdioOutputThe parts of a Node writable stream the transport uses (process.stdout).StdioStreamsToolDefinitionToolResult
Types
Constants
ErrorCodeJSON-RPC 2.0 and MCP error codes.INDEX_FORMATINSTRUCTIONSLEGACY_VERSIONSHandshake-era versions, newest first.MODERN_VERSIONSREMOVED_PACKAGESPackages that existed before the per-category split, with what replaced them.SUPPORTED_VERSIONSTOOLS