You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcp/server.ts
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,41 @@ server.tool(
73
73
}
74
74
);
75
75
76
+
server.tool(
77
+
"find_type_of_global_identifier",
78
+
{
79
+
filePath: z.string().describe("Absolute path to the ReScript file"),
80
+
identifier: z.string().describe("The identifier to find the type of"),
81
+
},
82
+
{
83
+
destructiveHint: false,
84
+
idempotentHint: true,
85
+
readOnlyHint: true,
86
+
title: `Finds the type of a global identifier, like \`SomeModule.SomeNestedModule.someValue\` or \`React.createElement\`.
87
+
88
+
- **Always** use the fully qualified global path. Even if you are in \`SomeModule.res\` and are looking for \`x\` in that file, use the fully qualified path \`SomeModule.x\`.`,
0 commit comments