# loadIndex (@salmonui/mcp)

> The loadIndex function of @salmonui/mcp: Reads and checks an index file. Throws with an actionable message when it is missing or of another format.

Canonical: https://salmonui.dev/docs/reference/mcp/loadIndex

```ts
import { loadIndex } from '@salmonui/mcp';
```

Entry index: https://salmonui.dev/docs/reference/mcp (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/mcp.md).

## Reference

Kind: function

```ts
function loadIndex(path?: string): McpIndex;
```

Reads and checks an index file. Throws with an actionable message when it is missing or of another format.
