src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { toolsProvider } from "./toolsProvider";
import { configSchematics } from "./config";
export async function main(context: PluginContext): Promise<void> {
// Pass the named provider function directly — `withToolsProvider` accepts both
// sync and async providers. This ensures LM Studio discovers and lists all
// exposed tool calls in the plugin sidebar.
context.withConfigSchematics(configSchematics);
context.withToolsProvider(toolsProvider);
}
src / index.ts
import { type PluginContext } from "@lmstudio/sdk";
import { toolsProvider } from "./toolsProvider";
import { configSchematics } from "./config";
export async function main(context: PluginContext): Promise<void> {
// Pass the named provider function directly — `withToolsProvider` accepts both
// sync and async providers. This ensures LM Studio discovers and lists all
// exposed tool calls in the plugin sidebar.
context.withConfigSchematics(configSchematics);
context.withToolsProvider(toolsProvider);
}