Skip to content

Commit 6ce4a0b

Browse files
committed
Fix formatting
1 parent 50db045 commit 6ce4a0b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

cli/src/client/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function getPrompt(
3434
const stringArgs: Record<string, string> = {};
3535
if (args) {
3636
for (const [key, value] of Object.entries(args)) {
37-
if (typeof value === 'string') {
37+
if (typeof value === "string") {
3838
stringArgs[key] = value;
3939
} else if (value === null || value === undefined) {
4040
stringArgs[key] = String(value);

cli/src/client/tools.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export async function listTools(client: Client): Promise<McpResponse> {
3030
}
3131
}
3232

33-
function convertParameterValue(value: string, schema: JsonSchemaType): JsonValue {
33+
function convertParameterValue(
34+
value: string,
35+
schema: JsonSchemaType,
36+
): JsonValue {
3437
if (!value) {
3538
return value;
3639
}
@@ -92,11 +95,11 @@ export async function callTool(
9295
// since we now accept pre-parsed values from the CLI
9396
const stringArgs: Record<string, string> = {};
9497
for (const [key, value] of Object.entries(args)) {
95-
if (typeof value === 'string') {
98+
if (typeof value === "string") {
9699
stringArgs[key] = value;
97100
}
98101
}
99-
102+
100103
if (Object.keys(stringArgs).length > 0) {
101104
const convertedStringArgs = convertParameters(tool, stringArgs);
102105
convertedArgs = { ...args, ...convertedStringArgs };

0 commit comments

Comments
 (0)