style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ export function mcpToolName(serverName: string, toolName: string): string {
|
||||
*/
|
||||
export function parseMcpToolName(prefixedName: string): { serverName: string; toolName: string } | null {
|
||||
const match = prefixedName.match(/^mcp:([^:]+):(.+)$/);
|
||||
if (!match) return null;
|
||||
if (!match) {return null;}
|
||||
return { serverName: match[1], toolName: match[2] };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user