Project Files
src / index.ts
import { gitToolsProvider } from "./tools-provider"
import type { PluginContext } from "@lmstudio/sdk"
/**
* Plugin entry point invoked by the LM Studio host when the plugin is loaded.
*
* @param context Plugin context supplied by the LM Studio SDK.
* @returns A promise that resolves once registration completes.
*/
export async function main(context: PluginContext): Promise<void> {
context.withToolsProvider(gitToolsProvider)
}