-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Describe the bug
It seems the schema (argument types) is incompatible with Cursor IDE.
To Reproduce
- Cursor IDE (recent versions)
- with Self-hosted SonarQube
- setting up mcpServer
- Trigger any calling
Expected behavior
Tool calling should work.
Screenshots

Additional context
It seems the grammar of schema types is not supported.
After I hacked some code, it works as expected:
+++ b/src/schemas/common.ts
@@ -113,14 +113,7 @@ export const impactSoftwareQualitiesSchema = z
.optional();
// Pull request schema - accepts either string or number and converts to string
-export const pullRequestSchema = z
- .union([z.string(), z.number()])
- .optional()
- .transform(numberOrStringToString);
+export const pullRequestSchema = z.string();
// Pull request schema with nullable - for schemas that allow null values
-export const pullRequestNullableSchema = z
- .union([z.string(), z.number()])
- .nullable()
- .optional()
- .transform(numberOrStringToString);
+export const pullRequestNullableSchema = z.string();
BryanHuntNV
Metadata
Metadata
Assignees
Labels
No labels