src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
/**
* Global configuration schematics for the qemu-mcp plugin.
*
* These fields are rendered as a settings UI in LM Studio and apply to all
* chats. They let the user point the wrapper at the QEMU QMP and serial
* sockets without editing code.
*/
export const globalConfigSchematics = createConfigSchematics()
.field(
"qmpSocketPath",
"string",
{
displayName: "QMP Socket Path",
subtitle: "Unix socket path where QEMU exposes its QMP interface (default: /tmp/qmp-sock).",
},
"/tmp/qmp-sock"
)
.field(
"serialSocketPath",
"string",
{
displayName: "Serial Socket Path",
subtitle: "Unix socket path for the guest serial console (default: /tmp/serial-sock).",
},
"/tmp/serial-sock"
)
.build();
/**
* Per-chat configuration schematics.
*
* Currently empty: all configurable settings for this plugin are global.
* Exported for LM Studio compatibility (the guide expects both to exist).
*/
export const configSchematics = createConfigSchematics().build();
src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
/**
* Global configuration schematics for the qemu-mcp plugin.
*
* These fields are rendered as a settings UI in LM Studio and apply to all
* chats. They let the user point the wrapper at the QEMU QMP and serial
* sockets without editing code.
*/
export const globalConfigSchematics = createConfigSchematics()
.field(
"qmpSocketPath",
"string",
{
displayName: "QMP Socket Path",
subtitle: "Unix socket path where QEMU exposes its QMP interface (default: /tmp/qmp-sock).",
},
"/tmp/qmp-sock"
)
.field(
"serialSocketPath",
"string",
{
displayName: "Serial Socket Path",
subtitle: "Unix socket path for the guest serial console (default: /tmp/serial-sock).",
},
"/tmp/serial-sock"
)
.build();
/**
* Per-chat configuration schematics.
*
* Currently empty: all configurable settings for this plugin are global.
* Exported for LM Studio compatibility (the guide expects both to exist).
*/
export const configSchematics = createConfigSchematics().build();