Skip to main content
Glama
SiroSuzume

MCP ts-morph Refactoring Tools

by SiroSuzume
check-is-path-alias.ts395 B
/** * モジュール指定子が tsconfig で定義されたパスエイリアスを使用しているかチェックする */ export function checkIsPathAlias( specifier: string, tsConfigPaths?: Record<string, string[]>, ): boolean { if (!tsConfigPaths) { return false; } return Object.keys(tsConfigPaths).some((aliasKey) => specifier.startsWith(aliasKey.replace(/\*$/, "")), ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SiroSuzume/mcp-ts-morph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server