MCP ts-morph Refactoring Tools 标志

MCP ts-morph Refactoring Tools

社区
SiroSuzume

ts-morphをつかったリファクタリング機能をMCPで提供する

发布者SiroSuzume
代码仓库mcp-ts-morph
语言TypeScript
复刻数
7
星标数
16
可用工具
5
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    MCP ts-morph Refactoring Tools 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 5 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 16 个星标和 7 个复刻。

MCP ts-morph Refactoring Tools

ts-morph を利用して、TypeScript / JavaScript コードベースに対する AST ベースのリファクタリング操作を提供する MCP サーバーです。シンボル名の変更、ファイル/フォルダ名の変更、参照検索などを、プロジェクト全体の整合性を保ちながら行えます。

目次

クイックスタート

MCP クライアントの設定ファイル(mcp.json 等)に以下を追加します。npx を使うことで、公開済みの最新バージョンが自動的に利用されます。

json
{
  "mcpServers": {
    "mcp-tsmorph-refactor": {
      "command": "npx",
      "args": ["-y", "@sirosuzume/mcp-tsmorph-refactor"],
      "env": {}
    }
  }
}

ロギングをカスタマイズする場合は ロギング設定 を参照してください。ローカルのソースから起動する場合は 開発 を参照してください。

提供されるツール

各ツールは ts-morph で AST を解析し、プロジェクト全体の参照を保ちながら変更を行います。すべてのツールはプロジェクトの tsconfig.json パスを必要とします。

ツール概要
rename_symbol_by_tsmorphシンボル名をプロジェクト全体で一括変更
rename_filesystem_entry_by_tsmorphファイル/フォルダ名を変更し import パスを更新
find_references_by_tsmorphシンボルの定義・参照箇所を一覧表示
remove_path_alias_by_tsmorphパスエイリアスを相対パスに置換
move_symbol_to_file_by_tsmorphシンボルを別ファイルに移動し参照を更新
change_signature_by_tsmorph関数の引数を追加/削除/並べ替え、全呼び出し箇所を更新
get_type_at_position_by_tsmorph指定位置の推論された型情報を取得
find_unused_exports_by_tsmorph未使用 export 候補を列挙

rename_symbol_by_tsmorph

指定ファイル内の特定位置にあるシンボル(関数・変数・クラス・インターフェースなど)の名前を、プロジェクト全体で一括変更します。

  • ユースケース: 参照箇所が多く手作業での変更が困難な場合。
  • 必要な情報: 対象ファイルのパス、シンボルの位置(行・列)、現在のシンボル名、新しいシンボル名。

rename_filesystem_entry_by_tsmorph

複数のファイルおよび/またはフォルダの名前を変更し、プロジェクト内のすべての import / export 文のパスを自動的に更新します。

  • ユースケース: ファイル構成の変更に伴う import パスの修正。複数のファイル/フォルダを一度にリネーム/移動したい場合。
  • 必要な情報: リネーム操作の配列 renames: { oldPath: string, newPath: string }[]。
  • 挙動:
    • 参照解決には主にシンボル解析を用います。
    • パスエイリアス(@/ など)を含む参照は更新されますが、相対パスに変換されます。
    • ディレクトリのインデックスを参照するインポート(例: ../components)は、明示的なファイルパス(例: ../components/index.tsx)に更新されます。
    • 操作前にパスの衝突(既存パス・操作内の重複)をチェックします。
  • 注意: 多数のファイル/フォルダや非常に大きなプロジェクトでは、解析と更新に時間がかかる場合があります。export default Identifier; 形式のデフォルトエクスポートの参照は正しく更新されない場合があります(既知の制限)。

find_references_by_tsmorph

指定ファイル内の特定位置にあるシンボルの定義箇所と、プロジェクト全体でのすべての参照箇所を検索して一覧表示します。

  • ユースケース: ある関数や変数の使用箇所の把握。リファクタリングの影響範囲の調査。
  • 必要な情報: 対象ファイルのパス、シンボルの位置(行・列)。

remove_path_alias_by_tsmorph

指定したファイルまたはディレクトリ内の import / export 文に含まれるパスエイリアス(@/components など)を、相対パス(../../components など)に置換します。

  • ユースケース: プロジェクトの移植性を高めたい、特定のコーディング規約に合わせたい場合。
  • 必要な情報: 処理対象のファイルまたはディレクトリのパス。

move_symbol_to_file_by_tsmorph

指定したシンボル(関数・変数・クラス・インターフェース・型エイリアス・Enum)を別ファイルに移動し、プロジェクト全体の参照(import/export パスを含む)を自動的に更新します。

  • ユースケース: 特定の機能を別ファイルに切り出してコード構成を変更したい場合。
  • 必要な情報: 移動元・移動先のファイルパス、移動するシンボルの名前。同名シンボルがある場合は種類(declarationKindString)を指定して曖昧性を解消できます。
  • 挙動: そのシンボル内でのみ使用される内部依存も一緒に移動します。移動元の他シンボルからも参照される依存は移動元に残り、必要に応じて export が追加されて移動先でインポートされます。
  • 注意: デフォルトエクスポート(export default)されたシンボルは移動できません。

change_signature_by_tsmorph

関数・メソッド・アロー関数の引数を追加・削除・並べ替えし、プロジェクト内のすべての呼び出し箇所の引数を合わせて更新します。

  • ユースケース: 呼び出し元が多い関数に必須引数を追加したい、import / 再エクスポート / メソッドチェーン経由で参照される関数の引数を削除・並べ替えたい場合。LLM の単発編集では取りこぼしが起きやすい更新を、型チェッカー経由で確実に反映します。
  • 必要な情報: 対象ファイルのパス、関数名識別子の位置(行・列)、関数名、適用する操作の配列 operations。
  • 操作(operations):
    • add: index(省略時は末尾)に引数を挿入。argumentForCallers を指定すると各呼び出し箇所の同じ位置にそのテキストを挿入。省略時は呼び出し側を変更しない(末尾の optional / デフォルト引数専用)。
    • remove: index の引数を削除。その数以上の引数を渡している呼び出しから対応分を削除。
    • reorder: newOrder に従って引数リストと各呼び出しを再構築。引数の数が一致しない呼び出しがあると失敗します。
    • 操作は順に適用され、後続の操作は先行操作適用後の引数リストを参照します。
  • 注意: スプレッド引数(fn(...args))を含む呼び出しは、引数を変更する操作で失敗します。呼び出し元が多い場合は dryRun: true で影響ファイルを先に確認してください。引数のリネームは rename_symbol_by_tsmorph、関数の移動は move_symbol_to_file_by_tsmorph を使ってください。

get_type_at_position_by_tsmorph

TypeScript / JavaScript ファイルの指定位置における、TypeChecker が推論した型・シンボル・宣言箇所を返します。

  • ユースケース: tsc を起動せずに「この変数 / 式 / 関数の実際の推論型は何か」を素早く確認したい場合。宣言ファイルを Read するより安価に型シグネチャを得たいとき。リファクタリング前に値の実際の形状を確認したいとき。
  • 必要な情報: 対象ファイルのパス、検査する位置(行・列)。
  • 注意: 空白やコメント行を指す場合はファイルレベルの推論型(例: typeof import("..."))が返り、通常は意図した結果ではありません。レスポンスの nodeKind を確認して識別子に再ターゲットしてください。多数の位置を一括で解析したい場合は tsc を直接使ってください。

find_unused_exports_by_tsmorph

プロジェクト全体を走査し、宣言ファイルの外から参照されていない export を候補として列挙します。

  • 検出対象: インライン export(export function/class/const/let/var/enum/interface/type)、export default(識別子・関数・クラス)、export = <Identifier>。
  • 判定方法: findReferencesAsNodes() の結果から、同一ファイル内の参照・ExportDeclaration 配下の参照(export { x } from "./y" 等の純粋な再エクスポート)・node_modules 内の参照を除外し、残り 0 件なら未使用候補とします。
  • ユースケース: デッドコード掃除、モジュールの公開面の棚卸し。削除前には必ず find_references_by_tsmorph でダブルチェックしてください。
  • sameFileRefs(削除 vs unexport の判断): 各候補に、同一ファイル内での参照数(宣言自身と再エクスポートサイトは除外)を添えます。報告される候補は定義上「宣言ファイルの外では未参照」なので、削除アクションはこの値で決まります。
    • sameFileRefs=0: 同一ファイル内でも未使用 → 真のデッド。宣言ごと削除して安全(textHits=0 も併せるとより確実)。
    • sameFileRefs=1+: 同一ファイル内では使用中 → export キーワードだけ不要。宣言は残すこと(消すと同一ファイル内参照が壊れる)。報告された宣言を一律削除するとビルドが壊れます。
  • textOccurrences(textHits): 宣言ファイル以外のソース内で \b<name>\b が出現する回数。0 は「他ファイルに名前が無い」だけで、同一ファイル内使用の有無は別途 sameFileRefs を見ること(このフィールド単独では「削除して安全」を判断できない)。1+ なら文字列リテラル / JSX / 動的参照の可能性があるため find_references_by_tsmorph で要確認。
  • default export の偽陽性: [default] タグの付く候補(export default <Identifier> / export = <Identifier>)は、findReferencesAsNodes が import Foo from "./mod" の default import と結びつかず偽陽性になりやすい。textHits が 0 より十分大きい default export はほぼ使用中。低信頼として必ず find_references_by_tsmorph で確認してください。
  • responseFormat: "list"(デフォルト、1 候補 1 行)/ "summary"(プロジェクト全体の集計=総数・削除安全性の内訳・kind 別・ディレクトリ別)。大規模リポでは全件列挙が応答サイズ上限を超えやすいので、まず "summary" でデッドコードの偏りを把握し、entryPoints / excludeFilePatterns で絞ってから "list" で正確な位置を取得する運用が安全(summary は maxResults に関わらず全体をスキャン)。
  • オプション: entryPoints(絶対パス配列。公開 API として常に使用扱い)、excludeFilePatterns(部分一致でスキャン対象外に)、maxResults(list モードの上限。デフォルト 100)、expandNamespaceImports(デフォルト ON)。
  • 既知の限界: 動的 require / import()、ファイルシステム規約に依存するルーティング(Next.js の page.tsx 等)、文字列リフレクション越しの参照は検出できません。entryPoints / excludeFilePatterns で候補を絞り込んでください。
  • monorepo の built dist パッケージは系統的偽陽性: workspace パッケージが package.json の exports(または main / module / types)でビルド成果物(例: ./dist/index.js)を公開している場合、他パッケージからの import はビルド出力(または node_modules)側に解決され、スキャン対象の src 側シンボルに紐づきません。そのため実際に消費されている export がそのパッケージだけ一括で未使用候補になります。この形は構造的に検出し、結果の先頭に ⚠ パッケージ単位の警告(パッケージ名・スキャン外を指すエントリポイント・影響候補数)を付けます。警告が付いたパッケージの候補は低信頼として扱い、削除前に textHits と find_references_by_tsmorph で必ず確認してください。回避策: 解析時はそのパッケージの exports をソース(./src/index.ts 等)に向けるか、候補を個別に検証する。

ロギング設定

サーバーの動作ログは環境変数で制御します。mcp.json の env ブロックで設定します。

環境変数説明デフォルト
LOG_LEVELログの詳細度。fatal / error / warn / info / debug / trace / silentinfo
LOG_OUTPUT出力先。console または fileconsole
LOG_FILE_PATHLOG_OUTPUT=file 時のログファイルの絶対パス[プロジェクトルート]/app.log

LOG_OUTPUT=console かつ開発環境(NODE_ENV !== 'production')で pino-pretty がインストールされている場合は、見やすい形式で出力されます。MCP クライアントへの標準出力の影響を避けたい場合は file を指定してください。

設定例:

json
{
  "mcpServers": {
    "mcp-tsmorph-refactor": {
      "command": "npx",
      "args": ["-y", "@sirosuzume/mcp-tsmorph-refactor"],
      "env": {
        "LOG_LEVEL": "debug",
        "LOG_OUTPUT": "file",
        "LOG_FILE_PATH": "/Users/yourname/logs/mcp-tsmorph.log"
      }
    }
  }
}

開発

前提条件

  • Node.js(バージョンは package.json の volta フィールドを参照)
  • pnpm(バージョンは package.json の packageManager フィールドを参照)

セットアップとビルド

bash
git clone https://github.com/sirosuzume/mcp-tsmorph-refactor.git
cd mcp-tsmorph-refactor
pnpm install
pnpm build      # dist/ に出力

主なコマンド

bash
pnpm test       # テスト実行
pnpm test:watch # ウォッチモードでテスト
pnpm check-types # 型チェック(コンパイルなし)
pnpm lint       # Lint チェック
pnpm lint:fix   # Lint 修正
pnpm format     # フォーマット
pnpm inspector  # MCP Inspector でデバッグ

ローカルビルドを MCP クライアントから使う

ビルド後、node で dist/index.js を直接起動できます。

json
{
  "mcpServers": {
    "mcp-tsmorph-refactor-dev": {
      "command": "node",
      "args": ["/path/to/your/local/repo/dist/index.js"],
      "env": {
        "LOG_LEVEL": "debug"
      }
    }
  }
}

デバッグ用ランチャー

サーバーの起動シーケンスや標準入出力を詳細に確認したい場合は、scripts/mcp_launcher.js を使います。本来のサーバープロセスを子プロセスとして起動し、起動情報や出力を .logs/mcp_launcher.log に記録します。

mcp.json の command を "node"、args を scripts/mcp_launcher.js へのパスに変更してクライアントを再起動すると、.logs/mcp_launcher.log(およびサーバー自身のログ)が確認できます。

json
{
  "mcpServers": {
    "mcp-tsmorph-refactor": {
      "command": "node",
      "args": ["scripts/mcp_launcher.js"],
      "env": {
        "LOG_OUTPUT": "file",
        "LOG_FILE_PATH": ".logs/mcp-ts-morph.log"
      }
    }
  }
}

リリース

このパッケージは GitHub Actions ワークフロー(.github/workflows/release.yml)を介して npm に自動公開されます。

Git タグがバージョンの単一の真実の source です。 package.json の version と src/version.ts の VERSION はどちらも 0.0.0-development に固定されており、リリースワークフローが tag から値を取り出して焼き込みます。手動で bump する必要はありません。

公開手順

bash
git checkout main && git pull --ff-only
git tag v1.2.0
git push origin v1.2.0

タグ push でワークフローがトリガーされ、以下を順に実行します。

  1. tag(v1.2.0)から VERSION(1.2.0)を抽出(strict SemVer のみ。プレリリース未サポート)
  2. placeholder バージョンのまま pnpm test
  3. node scripts/release-version.mjs --bake 1.2.0 で src/version.ts と package.json の version を書き換え
  4. pnpm build
  5. dist/version.js に exports.VERSION = "1.2.0"; が含まれることを grep -F で確認
  6. _version_note を package.json から除去
  7. pnpm publish --provenance で npm へ公開(Trusted Publishing / OIDC)

完了後、npm view @sirosuzume/mcp-tsmorph-refactor version で反映を確認してください。

npm Trusted Publishing が前提です。NPM_TOKEN は廃止済みで、GitHub Actions の OIDC を介して publish されます(release.yml の id-token: write 参照)。

なぜ tag を真実の source にしているか

旧運用では「package.json の version を bump」「src/mcp/config.ts の serverInfo.version を bump」「タグを打つ」の 3 手順のいずれかを忘れると不整合がリリースされていました(実際にズレた履歴あり)。新運用では開発中はずっと 0.0.0-development のままで、リリース時に CI が tag を見て全箇所を更新するため、bump 忘れが構造的に発生しません。

CI(.github/workflows/ci.yml)は PR / main push のたびに node scripts/release-version.mjs --check を実行し、両ファイルが placeholder のままであることを確認します。手で bump した PR はここで失敗します。

失敗時の復旧

  • ワークフロー途中で失敗した場合は tag を削除せず、main に修正をマージしてから次のパッチタグ(vX.Y.(Z+1))を打ってください(fix-forward)。
  • 同じタグでの再 publish は npm の immutability により不可能なため、tag の上書きは無意味です。

ライセンス

このプロジェクトは MIT ライセンスの下で公開されています。詳細は LICENSE ファイルをご覧ください。

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "sirosuzume-mcp-ts-morph": {
      "command": "npx",
      "args": [
        "-y",
        "@sirosuzume/mcp-tsmorph-refactor"
      ]
    }
  }
}

可用工具

  • rename_symbol_by_tsmorph

    [Uses ts-morph] Renames TypeScript/JavaScript symbols across the project.

    Analyzes the AST (Abstract Syntax Tree) to track and update references throughout the project, not just the definition site. Useful for cross-file refactoring tasks during Vibe Coding.

    Usage

    Use this tool, for example, when you change a function name defined in one file and want to reflect that change in other files that import and use it. ts-morph parses the project based on tsconfig.json to resolve symbol references and perform the rename.

    1. Specify the exact location (file path, line, column) of the symbol (function name, variable name, class name, etc.) you want to rename. This is necessary for ts-morph to identify the target Identifier node in the AST.
    2. Specify the current symbol name and the new symbol name.
    3. It's recommended to first run with dryRun: true to check which files ts-morph will modify.
    4. If the preview looks correct, run with dryRun: false (or omit it)
  • rename_filesystem_entry_by_tsmorph

    [Uses ts-morph] Renames one or more TypeScript/JavaScript files and/or folders and updates all import/export paths referencing them throughout the project.

    Analyzes the project based on tsconfig.json to find all references to the items being renamed and automatically corrects their paths. Handles various path types, including relative paths, path aliases (e.g., @/), and imports referencing a directory's index.ts (from '.' or from '..'). Checks for conflicts before applying changes.

    Usage

    Use this tool when you want to rename/move multiple files or folders simultaneously (e.g., renaming util.ts to helper.ts and moving src/data to src/coreData in one operation) and need all the import/export statements referencing them to be updated automatically.

    1. Specify the path to the project's tsconfig.json file. Must be an absolute path.
    2. Provide an array of rename operations. Each object in the array must contain:
      • oldPath: The current **abso
  • find_references_by_tsmorph

    [Uses ts-morph] Finds the definition and all references to a symbol at a given position throughout the project.

    Analyzes the project based on tsconfig.json to locate the definition and all usages of the symbol (function, variable, class, etc.) specified by its position.

    Usage

    Use this tool before refactoring to understand the impact of changing a specific symbol. It helps identify where a function is called, where a variable is used, etc.

    1. Specify the absolute path to the project's tsconfig.json.
    2. Specify the absolute path to the file containing the symbol you want to investigate.
    3. Specify the exact position (line and column) of the symbol within the file.

    Parameters

    • tsconfigPath (string, required): Absolute path to the project's root tsconfig.json file. Essential for ts-morph to parse the project. Must be an absolute path.
    • targetFilePath (string, required): The absolute path to the file containing the symbol to find references for. **Must
  • remove_path_alias_by_tsmorph

    [Uses ts-morph] Replaces path aliases (e.g., '@/') with relative paths in import/export statements within the specified target path.

    Analyzes the project based on tsconfig.json to resolve aliases and calculate relative paths.

    Usage

    Use this tool to convert alias paths like import Button from '@/components/Button' to relative paths like import Button from '../../components/Button'. This can be useful for improving portability or adhering to specific project conventions.

    1. Specify the absolute path to the projecttsconfig.json.
    2. Specify the absolute path to the target file or directory where path aliases should be removed.
    3. Optionally, run with dryRun: true to preview the changes without modifying files.

    Parameters

    • tsconfigPath (string, required): Absolute path to the projecttsconfig.json file. Must be an absolute path.
    • targetPath (string, required): The absolute path to the file or directory to process. Must be an absolute path.
    • dryRu
  • move_symbol_to_file_by_tsmorph

    [Uses ts-morph] Moves a specified symbol (function, variable, class, etc.) and its internal-only dependencies to a new file, automatically updating all references across the project. Aids refactoring tasks like file splitting and improving modularity.

    Analyzes the AST (Abstract Syntax Tree) to identify usages of the symbol and corrects import/export paths based on the new file location. It also handles moving necessary internal dependencies (those used only by the symbol being moved).

    Usage

    Use this tool for various code reorganization tasks:

    1. Moving a specific function/class/variable: Relocate a specific piece of logic to a more appropriate file (e.g., moving a helper function from a general utils.ts to a feature-specific feature-utils.ts). This tool moves the specified symbol and its internal-only dependencies.
    2. Extracting or Moving related logic (File Splitting/Reorganization): To split a large file or reorganize logic, move related functions, classes, t

将 MCP ts-morph Refactoring Tools MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 MCP ts-morph Refactoring Tools 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 MCP ts-morph Refactoring Tools 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 MCP ts-morph Refactoring Tools MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "sirosuzume-mcp-ts-morph": {
      "command": "npx",
      "args": [
        "-y",
        "@sirosuzume/mcp-tsmorph-refactor"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 MCP ts-morph Refactoring Tools MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 MCP ts-morph Refactoring Tools MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 MCP ts-morph Refactoring Tools 帮我完成这项任务吗?
MCP ts-morph Refactoring Tools
当然,我看过了。
以下是我使用 MCP ts-morph Refactoring Tools 得到的结果。

常见问题

MCP ts-morph Refactoring Tools MCP 服务器有什么用途?

MCP ts-morph Refactoring Tools 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 MCP ts-morph Refactoring Tools MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 MCP ts-morph Refactoring Tools。

为什么在 TypingMind 中使用 MCP ts-morph Refactoring Tools MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 MCP ts-morph Refactoring Tools 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 MCP ts-morph Refactoring Tools MCP 连接到 TypingMind?

MCP ts-morph Refactoring Tools 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

MCP ts-morph Refactoring Tools MCP 在 TypingMind 中提供哪些工具?

MCP ts-morph Refactoring Tools 提供 5 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 MCP ts-morph Refactoring Tools MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 MCP ts-morph Refactoring Tools 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇