ts-morph を利用した MCP リファクタリングサーバー
If you already use MCP Ts Morph, the mcp ts morph mcp server is the piece that lets your assistant work with it directly. ts-morph を利用した MCP リファクタリングサーバー.
このパッケージは GitHub Actions ワークフロー(.github/workflows/release.yml)を介して npm に自動公開されます。
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
rename_symbol_by_tsmorph — The rename_symbol_by_tsmorph tool exposed by this serverrename_filesystem_entry_by_tsmorph — The rename_filesystem_entry_by_tsmorph tool exposed by this serverfind_references_by_tsmorph — The find_references_by_tsmorph tool exposed by this serverremove_path_alias_by_tsmorph — The remove_path_alias_by_tsmorph tool exposed by this servermove_symbol_to_file_by_tsmorph — The move_symbol_to_file_by_tsmorph tool exposed by this serverchange_signature_by_tsmorph — The change_signature_by_tsmorph tool exposed by this serverget_type_at_position_by_tsmorph — The get_type_at_position_by_tsmorph tool exposed by this serverfind_unused_exports_by_tsmorph — The find_unused_exports_by_tsmorph tool exposed by this serverConfiguration is passed through the environment: LOG_LEVEL, LOG_OUTPUT, LOG_FILE_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
The server ships on npm as pnpm, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Ts Morph's toolset — rename_symbol_by_tsmorph, rename_filesystem_entry_by_tsmorph, find_references_by_tsmorph and 5 more — is a fair guide to whether it matches your workflow. It is maintained by SiroSuzume; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against MCP Ts Morph's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| rename_symbol_by_tsmorph | The rename_symbol_by_tsmorph tool exposed by this server. |
| rename_filesystem_entry_by_tsmorph | The rename_filesystem_entry_by_tsmorph tool exposed by this server. |
| find_references_by_tsmorph | The find_references_by_tsmorph tool exposed by this server. |
| remove_path_alias_by_tsmorph | The remove_path_alias_by_tsmorph tool exposed by this server. |
| move_symbol_to_file_by_tsmorph | The move_symbol_to_file_by_tsmorph tool exposed by this server. |
| change_signature_by_tsmorph | The change_signature_by_tsmorph tool exposed by this server. |
| get_type_at_position_by_tsmorph | The get_type_at_position_by_tsmorph tool exposed by this server. |
| find_unused_exports_by_tsmorph | The find_unused_exports_by_tsmorph tool exposed by this server. |
{
"mcpServers": {
"mcp-tsmorph-refactor": {
"command": "npx",
"args": ["-y", "@sirosuzume/mcp-tsmorph-refactor"],
"env": {}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| LOG_LEVEL | Configuration value read at startup. | Optional |
| LOG_OUTPUT | Configuration value read at startup. | Optional |
| LOG_FILE_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.