MCP Python Refactoringのロゴ

MCP Python Refactoring

コミュニティ
slamer59

A Model Context Protocol (MCP) server that analyzes Python code and provides guided refactoring suggestions without automatically modifying your code.

公開者slamer59
リポジトリmcp-python-refactoring
言語Python
フォーク
6
スター
13
利用可能なツール
0
通信方式stdio, streamable-http
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    MCP Python Refactoringは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには13件のスターと6件のフォークがあります。

MCP Python Refactoring

License: MIT Python 3.13+ MCP Registry Docker

A Model Context Protocol (MCP) server that analyzes Python code and provides guided refactoring suggestions without automatically modifying your code.

Keywords

python refactoring code-analysis mcp-server ai-assistant claude rope radon vulture jedi educational mentoring code-quality static-analysis complexity-analysis

This tool integrates with AI coding assistants (Claude, ChatGPT, Cursor, etc.) to provide intelligent refactoring guidance. Instead of making automatic code changes, it gives you precise instructions on how to improve your Python code, acting as your refactoring mentor.

What This Tool Does

For AI Coding Assistants:

  • Provides structured JSON responses with refactoring opportunities
  • Identifies long functions, high complexity code, and dead code
  • Gives precise line numbers for extract method refactoring
  • Uses professional tools for comprehensive analysis

For Developers:

  • Get step-by-step refactoring instructions
  • Maintain full control over code changes
  • Learn refactoring patterns through guided practice
  • Improve code quality systematically

How It Differs

ApproachThis ToolTraditional Refactoring Tools
IntegrationWorks with any LLM/AI assistantIDE-specific or standalone
GuidanceStep-by-step instructions with line numbersAutomatic changes only
LearningEducational approach teaches patternsNo learning component
ControlDeveloper maintains full controlTool makes all decisions

Registry Submissions

This MCP server is available across the entire MCP ecosystem:

Official MCP Registry

Published and Live: registry.modelcontextprotocol.io

  • Server name: io.github.slamer59/mcp-python-refactoring
  • Discoverable by all MCP-compatible clients

🟡 Docker MCP Registry

Pull Request Submitted: docker/mcp-registry #207

  • Will be available as mcp/mcp-python-refactoring on Docker Hub
  • Includes enhanced security: signatures, SBOM, provenance tracking
  • Integrated into Docker Desktop's MCP Toolkit

🟡 Awesome MCP Servers Lists

Community Curated Lists:

📦 Installation Options

Once all registries are live, users can discover via:

  • MCP catalog - Official registry search
  • Docker Desktop - MCP Toolkit integration
  • Community lists - GitHub awesome lists
  • Docker Hub - mcp/mcp-python-refactoring (with enhanced security)

Docker Support

Using with Docker MCP Catalog

bash
# Pull from Docker Hub (after registry approval)
docker run -i mcp/mcp-python-refactoring

# Or build locally
docker build -t mcp-python-refactoring .
docker run -i mcp-python-refactoring

Dockerfile

dockerfile
FROM python:3.13-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git \
    && rm -rf /var/lib/apt/lists/*

# Copy project files
COPY pyproject.toml README.md ./
COPY src/ ./src/

# Install the package
RUN pip install --no-cache-dir -e .

# Expose MCP server port (optional, for documentation)
EXPOSE 3000

# Run the MCP server
ENTRYPOINT ["python-refactor", "server"]

Installation

Quick Start with uvx (Recommended)

bash
# Install and run MCP server directly from GitHub
uvx --from git+https://github.com/slamer59/mcp-python-refactoring.git python-refactor server

Add to Claude Code (One Command)

bash
# Add to Claude Code MCP configuration
claude-code mcp add mcp-python-refactoring uvx --from git+https://github.com/slamer59/mcp-python-refactoring.git python-refactor server

After running this command, restart Claude Desktop and the Python refactoring tools will be available in your Claude conversations!

Development Installation

bash
# Clone and setup for development
git clone https://github.com/slamer59/mcp-python-refactoring.git
cd mcp-python-refactoring
uv sync

# Run MCP server locally
python -m mcp_refactoring_assistant server

# Or use the entry point after installation
pip install -e .
python-refactor server

CLI Usage

The python-refactor-cli entry point (installed via uv sync or pip install -e .) runs every analysis standalone, without an MCP client — useful for scripts, CI, or driving the tool directly from an agent's shell:

bash
uv run python-refactor-cli --help

In addition to analyze, analyze-package, package-metrics, package-issues, and package-dependencies, the CLI covers every MCP tool 1:1:

find-long-functions <file_path>

Find functions at or above a line-count threshold.

bash
uv run python-refactor-cli find-long-functions src/app.py --line-threshold 30 --format json

extraction-guidance <file_path>

Step-by-step guidance for extracting a specific function.

bash
uv run python-refactor-cli extraction-guidance src/app.py --function-name process_order

test-coverage <source_path>

Analyze test coverage and suggest what needs tests.

bash
uv run python-refactor-cli test-coverage src/ --test-path tests/ --target-coverage 80

tdd-guidance <file_path>

Red-Green-Refactor guidance for a function.

bash
uv run python-refactor-cli tdd-guidance src/app.py --function-name process_order

security-scan <file_path>

Security vulnerabilities, dependency scanning, and modernization suggestions (bandit, pip-audit, refurb).

bash
uv run python-refactor-cli security-scan src/app.py --format table

Every command supports --format json for machine-readable output.

Working with Agents

This project ships a SKILL.md describing how an agent should call it — which command to use for which situation, and the JSON output contract.

bash
uv run python-refactor-cli skill path

Point your coding agent (e.g. Claude Code) at the path this prints and ask it to load the skill file before refactoring Python code in this repo. A good generic prompt:

Run uv run python-refactor-cli skill path and load that skill for this session.

Available MCP Tools

Unified Server

Single Server: Both guide-only and apply-changes modes in one server

Connection Options:

  • stdin/stdout: python-refactor server (default)
  • Module execution: python -m mcp_refactoring_assistant server

Tools

1. analyze_python_code

Comprehensive analysis with optional automatic refactoring.

Parameters:

  • content (required): Python file content as string
  • mode (optional): "guide_only" (default) or "apply_changes"
  • file_path (optional): Path to the file for context
  • line_threshold (optional): Minimum lines for long functions (default: 20)

Mode: guide_only - Returns instructions only Mode: apply_changes - Returns modified code

2. analyze_security_and_patterns 🔒 NEW!

Comprehensive security scanning and modern Python patterns analysis.

Parameters:

  • content (required): Python file content as string
  • file_path (optional): Path to the file for context
  • include_security_scan (optional): Enable security vulnerability scanning (default: true)
  • include_dependency_scan (optional): Enable dependency vulnerability scanning (default: true)
  • include_modernization (optional): Enable modern Python pattern suggestions (default: true)

Features:

  • Security Analysis: Detects 20+ vulnerability types (hardcoded secrets, SQL injection, weak crypto, etc.)
  • Dependency Scanning: Scans project dependencies for known CVEs using pip-audit
  • Modernization: Suggests modern Python patterns (f-strings, pathlib, enumerate, etc.)
  • Intelligent Prioritization: Issues ranked by severity and impact
  • Configurable Analysis: Enable/disable specific scanning types as needed

3. extract_function

Extract specific functions with guide or apply mode.

Parameters:

  • content (required): Python file content
  • mode (optional): "guide_only" or "apply_changes"
  • function_name (optional): Specific function to target
  • start_line, end_line (for apply_changes): Exact extraction range
  • new_function_name (for apply_changes): Name for extracted function

4. quick_analyze

Fast analysis for immediate refactoring opportunities.

Parameters:

  • content (required): Python file content

Returns: Quick summary of long functions and parameter issues

4. check_types_with_pyrefly

Advanced type checking and quality analysis using pyrefly.

Parameters:

  • content (required): Python code content to type check

Returns: Detailed type errors, quality issues, and improvement suggestions

5. get_server_capabilities (Internal)

Returns server capabilities and available analysis tools.

Returns: List of available tools: rope, radon, vulture, jedi, libcst, pyrefly, mccabe, complexipy

Analysis Capabilities

Code Quality Issues Detected:

  • Functions over 20 lines (extract method opportunities)
  • High cyclomatic complexity (>10) using McCabe analysis
  • High cognitive complexity (>15) using Complexipy analysis
  • Functions with too many parameters (>5)
  • Dead/unused code (consolidated suggestions) via Vulture
  • Low maintainability index (<20) using Radon metrics
  • Type annotation problems detected by Pyrefly
  • Large files (>500 lines) with module splitting recommendations
  • Files with too many imports (>20) suggesting restructuring

🔒 Security & Modernization Features (NEW!):

  • Security Vulnerability Detection: Comprehensive security scanning using Bandit
  • Dependency Security Analysis: CVE detection in project dependencies with pip-audit
  • Modern Python Patterns: Code modernization suggestions using Refurb
  • Unified Analysis: Intelligent prioritization combining security and modernization
  • Configurable Scanning: Enable/disable specific analysis types via MCP endpoint

Additional Analysis Tools:

  • Performance Analysis: Bottleneck identification and optimization suggestions
  • Type Hints: Missing type annotation detection
  • Documentation: Docstring coverage and quality assessment

Professional Tools Used:

🔧 Core Refactoring Analysis:

  • Rope: Professional refactoring analysis and extract method detection
  • Radon: Code complexity metrics (cyclomatic, maintainability index)
  • Vulture: Dead code detection and unused import analysis
  • Jedi: Semantic code analysis and variable tracking
  • LibCST: Syntax tree manipulation for precise code analysis
  • Pyrefly: Advanced type checking and quality analysis
  • McCabe: Cyclomatic complexity measurement
  • Complexipy: Advanced complexity analysis and cognitive complexity

🔒 Security & Modernization Tools (NEW!):

  • Bandit: AST-based security vulnerability scanner (20+ vulnerability types)
  • pip-audit: Dependency vulnerability scanner with CVE database
  • Refurb: Modern Python pattern suggestions and code modernization

📁 Built-in Analysis:

  • File Analysis: File size analysis and module splitting recommendations
  • Package Analysis: Comprehensive package structure and dependency analysis

Testing and Debugging

Test with MCP Inspector

bash
# Launch MCP Inspector
bunx @modelcontextprotocol/inspector

# In the web interface:
# Command: python
# Args: -m mcp_refactoring_assistant server
# Working Directory: /path/to/your/project

Test Both Modes in Inspector:

Guide Mode Test:

json
{
  "content": "def long_function():\n    print('line1')\n    # ... 20+ lines",
  "mode": "guide_only"
}

Apply Mode Test:

json
{
  "content": "def long_function():\n    print('line1')\n    # ... 20+ lines", 
  "mode": "apply_changes"
}

Test with Bun (Fastest)

bash
# Install Bun if not available
curl -fsSL https://bun.sh/install | bash

# Install MCP SDK
bun install -g @modelcontextprotocol/sdk

# Run tests
export PATH=.venv/bin:$PATH && bun run test_unified.js

Test Standalone (No MCP)

bash
# Simple Python test
python test_tool.py

# Test with example file
python -m mcp_refactoring_assistant --help

Debug Server Issues

bash
# Check dependencies
uv sync

# Verify MCP imports
python -c "import mcp; print('MCP available')"

# Test individual tools
python -c "
from src.mcp_refactoring_assistant.server import EnhancedRefactoringAnalyzer
analyzer = EnhancedRefactoringAnalyzer()
print('Analyzer working')
"

Example Usage

Educational Workflow

  1. AI assistant calls analyze_python_code with guide_only mode
  2. Tool returns structured suggestions with precise steps
  3. Developer follows step-by-step instructions
  4. Developer learns refactoring patterns through practice

Productivity Workflow

  1. AI assistant calls analyze_python_code with apply_changes mode
  2. Tool returns modified code with applied refactorings
  3. Developer reviews changes and applies as needed
  4. Faster refactoring for experienced developers

Sample MCP Response (Guide Mode)

json
{
  "analysis_summary": {
    "total_issues_found": 2,
    "medium_priority": 1,
    "low_priority": 1
  },
  "refactoring_guidance": [
    {
      "issue_type": "extract_function",
      "location": "Function 'process_data' lines 45-78",
      "description": "Long function (34 lines) with extractable blocks",
      "precise_steps": [
        "SELECT lines 45-52 (validation block)",
        "CREATE function: validate_input(data)",
        "REPLACE with: is_valid = validate_input(data)"
      ]
    },
    {
      "issue_type": "dead_code", 
      "location": "Multiple locations (6 items)",
      "description": "6 unused items found",
      "precise_steps": [
        "Review all unused items listed below:",
        "• Line 11: Unused import 're'",
        "• Line 12: Unused import 'Optional'",
        "Verify each item is truly unused",
        "Remove confirmed unused code"
      ]
    }
  ]
}

Integration with Coding Assistants

Claude Code/CLI

Add to your MCP configuration:

json
{
  "servers": {
    "python-refactoring": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/slamer59/mcp-python-refactoring.git", "python-refactor", "server"]
    }
  }
}

Or for local installation:

json
{
  "servers": {
    "python-refactoring": {
      "command": "python",
      "args": ["-m", "mcp_refactoring_assistant", "server"]
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "python-refactoring": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/slamer59/mcp-python-refactoring.git", "python-refactor", "server"]
    }
  }
}

Or for local installation:

json
{
  "mcpServers": {
    "python-refactoring": {
      "command": "python",
      "args": ["-m", "mcp_refactoring_assistant", "server"]
    }
  }
}

Cline (VSCode Extension)

In VSCode settings or .vscode/settings.json:

json
{
  "cline.mcpServers": {
    "python-refactoring": {
      "command": "python",
      "args": ["-m", "mcp_refactoring_assistant", "server"]
    }
  }
}

Cursor

Add to Cursor's MCP configuration:

json
{
  "mcpServers": {
    "python-refactoring": {
      "command": "python",
      "args": ["-m", "mcp_refactoring_assistant", "server"]
    }
  }
}

Continue (VSCode Extension)

In ~/.continue/config.json:

json
{
  "mcpServers": [
    {
      "name": "python-refactoring",
      "command": "python",
      "args": ["-m", "mcp_refactoring_assistant", "server"]
    }
  ]
}

Windsurf

Add to Windsurf MCP configuration:

json
{
  "servers": {
    "python-refactoring": {
      "command": "python",
      "args": ["-m", "mcp_refactoring_assistant", "server"]
    }
  }
}

Aider

Use with MCP bridge or direct integration:

bash
aider --mcp-server "python -m mcp_refactoring_assistant server"

OpenHands (formerly OpenDevin)

In OpenHands configuration:

yaml
mcp_servers:
  python-refactoring:
    command: python
    args: ["-m", "mcp_refactoring_assistant", "server"]

Roo-Code

Add to Roo-Code's MCP settings:

json
{
  "mcpServers": {
    "python-refactoring": {
      "command": "python",
      "args": ["-m", "mcp_refactoring_assistant", "server"]
    }
  }
}

Codex CLI

Add to ~/.codex/config.toml:

toml
[mcp_servers.python-refactoring]
command = "python"
args = ["-m", "mcp_refactoring_assistant", "server"]

Terminal-based clients

For most terminal-based MCP clients:

bash
# With uvx
client-name --mcp-server "uvx --from git+https://github.com/slamer59/mcp-python-refactoring.git python-refactor server"

# With local installation  
client-name --mcp-server "python -m mcp_refactoring_assistant server"

SSE Mode (Web-based clients)

For web-based clients that support SSE connections:

  1. Start the server in SSE mode:
bash
# SSE mode is not currently supported
# Use stdin/stdout mode instead
python-refactor server
  1. Use stdin/stdout connection instead of SSE

Using with mcpo (ChatGPT and others)

For clients without native MCP support:

bash
# Install mcpo
pip install mcpo

# Bridge MCP to OpenAI-compatible API
mcpo --mcp-server "python -m mcp_refactoring_assistant server" --port 8080

Then configure your client to use http://localhost:8080 as API endpoint.

Notes

  • Use python -m mcp_refactoring_assistant server for local installations
  • For uvx installation, use the full uvx command instead of local paths
  • Some clients may require additional configuration or have different syntax
  • Always use absolute paths when specifying python executable
  • Test the connection with the client's MCP debugging tools if available

How It Works

  1. Analysis: Server analyzes Python code using multiple professional tools
  2. Detection: Identifies specific refactoring opportunities with metrics
  3. Guidance: Provides precise line numbers and step-by-step instructions
  4. Integration: AI assistant interprets results and guides developer
  5. Control: Developer maintains full control over all code changes

User Feedback

Users report significant improvements in code quality understanding and refactoring skills when using this tool with AI assistants. The guided approach helps developers learn refactoring patterns while maintaining control over code changes.

"Finally, a tool that teaches me refactoring instead of doing it for me"
"The precise line numbers make it easy to follow the suggestions"
"Game changer for working with legacy code"

Troubleshooting

MCP Connection Issues:

  • Ensure all dependencies installed: uv sync
  • Check Python path: which python
  • Verify MCP import: python -c "import mcp"

Analysis Not Working:

  • Test analyzer directly: python test_tool.py
  • Check file permissions
  • Verify example file exists: ls examples/

Tool Responses Empty:

  • Check if code has functions to analyze (minimum complexity threshold)
  • Increase line threshold for testing: "line_threshold": 10
  • Verify file syntax is valid Python
  • Ensure virtual environment is activated

SSE Connection Issues:

  • Verify port is not in use: netstat -an | grep 3001
  • Check firewall settings for local connections
  • Ensure FastAPI and Uvicorn are installed: uv add fastapi uvicorn

Performance Issues:

  • For large codebases (>100 files), consider using file-specific analysis
  • Increase timeout settings in MCP client configuration
  • Use quick_analyze for immediate feedback on specific functions

Community Registries

Submit to awesome lists and community catalogs:

🆕 Recent Major Updates

Version 2.0: Security & Modernization Features

🎉 What's New:

  • 🔒 Security Scanning: Professional-grade vulnerability detection using Bandit

    • Detects 20+ security issue types (SQL injection, hardcoded secrets, weak crypto)
    • Integrates seamlessly with existing refactoring analysis
  • 📦 Dependency Security: CVE scanning with pip-audit

    • Scans project dependencies for known vulnerabilities
    • Provides specific version upgrade recommendations
  • ⚡ Code Modernization: Python pattern suggestions using Refurb

    • Suggests modern Python features (f-strings, pathlib, enumerate)
    • Helps upgrade legacy code to contemporary best practices
  • 🎯 Unified Analysis: Intelligent prioritization system

    • Combines security, modernization, and refactoring analysis
    • Smart priority ordering by severity and impact
    • Configurable scanning options via new MCP endpoint
  • ✅ Production Ready:

    • 177+ comprehensive tests (100% passing)
    • Extensive error handling and edge case coverage
    • Performance tested on large codebases
    • Full backward compatibility maintained

📊 Proven Results:

  • Successfully analyzed and improved itself through iterative refinement
  • Reduced code complexity while adding powerful new features
  • Enhanced type safety and maintainability throughout the codebase

License

MIT License - Free for personal and commercial use.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "slamer59-mcp-python-refactoring": {
      "command": "uvx",
      "args": [
        "mcp-refactoring-assistant-test"
      ]
    }
  }
}

MCP Python RefactoringのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度MCP Python Refactoringに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

MCP Python Refactoringをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. MCP Python RefactoringのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "slamer59-mcp-python-refactoring": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-refactoring-assistant-test"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMCP Python RefactoringのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. MCP Python RefactoringのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
MCP Python Refactoringを使ってこのタスクを手伝ってもらえますか?
MCP Python Refactoring
はい、読みました。
MCP Python Refactoringで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

MCP Python Refactoringがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にお使いのサーバーURLを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にお使いのサーバーURLを貼り付けてください。
  2. MCP Python Refactoringの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. MCP Python Refactoringの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でMCP Python Refactoringのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でMCP Python Refactoringのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
MCP Python Refactoringを使ってこのタスクを手伝ってもらえますか?
MCP Python Refactoring
はい、読みました。
MCP Python Refactoringで調べた結果をお伝えします。

よくある質問

MCP Python Refactoring MCPサーバーは何に使いますか?

MCP Python Refactoringは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMCP Python Refactoring MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMCP Python Refactoringを利用できます。

TypingMindでMCP Python Refactoring MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。MCP Python Refactoringを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

MCP Python Refactoring MCPをTypingMindに接続するにはどうすればよいですか?

MCP Python Refactoringは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでMCP Python Refactoring MCPのどのようなツールを利用できますか?

MCP Python RefactoringはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

MCP Python Refactoring MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。MCP Python Refactoringで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇