192
193
protected getVariables(variableInputs: Record<string, IMcpServerInput>): IMcpServerVariable[] {
195
>
for (const [key, value] of Object.entries(variableInputs)) {
196
>
variables.push({
197
>
id: key,
198
>
type: value.choices ? McpServerVariableType.PICK : McpServerVariableType.PROMPT,
199
>
description: value.description ?? '',
200
>
password: !!value.isSecret,
201
>
default: value.default,
202
>
options: value.choices,
203
>
});
204
>
}
205
>
return variables;
206
>
}
207
208
private processKeyValueInputs(keyValueInputs: ReadonlyArray<IMcpServerKeyValueInput>): { inputs: Record<string, string>; variables: IMcpServerVariable[]; notices: string[] } {