Koskamo

MCP Python Refactoring

An educational Model Context Protocol server that analyzes Python code to provide guided refactoring suggestions. It identifies issues like long functions, high complexity, and dead code, offering precise line numbers and step-by-step instructions for improvements without automatically modifying the code, allowing developers to maintain full control.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

MCP Python Refactoring logo, by slamer59Community listingLocal stdioSource reviewed; not executedPublished by slamer59
Vendor documentation

What its tools do

9 tools, grouped by the hints the source reports. Hints are self-declared, not verified behavior.

0 of 9 have a description · 0 of 9 declare behavior hints

Checks and signals

Each line is separate evidence, not a trust score.

  • Popularity 13 GitHub stars

What you can do with it

  • Identify long functions and high complexity code
  • Locate dead code for removal
  • Get precise line numbers for extract method refactoring
  • Learn refactoring patterns through guided practice

Source and maintenance

Community listingMIT
Last repository push
Latest release
v1.0.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

mcp/mcp-python-refactoring@sha256:4cd4303da424f021f03e9fafc46187a08bcab212ead6f1e39867afee1d42cd24

oci
mcp/mcp-python-refactoring@sha256:4cd4303da424f021f03e9fafc46187a08bcab212ead6f1e39867afee1d42cd24 package definition
{
  "transport": "stdio",
  "identifier": "mcp/mcp-python-refactoring@sha256:4cd4303da424f021f03e9fafc46187a08bcab212ead6f1e39867afee1d42cd24",
  "registryType": "oci",
  "registryBaseUrl": "https://registry-1.docker.io"
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

analyze_python_file
Reported by the attributed source; not independently observed by Koskamo.
analyze_python_file input schema
{
  "type": "",
  "required": null,
  "properties": null
}
analyze_python_package
Reported by the attributed source; not independently observed by Koskamo.
analyze_python_package input schema
{
  "type": "",
  "required": null,
  "properties": null
}
analyze_security_and_patterns
Reported by the attributed source; not independently observed by Koskamo.
analyze_security_and_patterns input schema
{
  "type": "",
  "required": null,
  "properties": null
}
analyze_test_coverage
Reported by the attributed source; not independently observed by Koskamo.
analyze_test_coverage input schema
{
  "type": "",
  "required": null,
  "properties": null
}
find_long_functions
Reported by the attributed source; not independently observed by Koskamo.
find_long_functions input schema
{
  "type": "",
  "required": null,
  "properties": null
}
find_package_issues
Reported by the attributed source; not independently observed by Koskamo.
find_package_issues input schema
{
  "type": "",
  "required": null,
  "properties": null
}
get_extraction_guidance
Reported by the attributed source; not independently observed by Koskamo.
get_extraction_guidance input schema
{
  "type": "",
  "required": null,
  "properties": null
}
get_package_metrics
Reported by the attributed source; not independently observed by Koskamo.
get_package_metrics input schema
{
  "type": "",
  "required": null,
  "properties": null
}
tdd_refactoring_guidance
Reported by the attributed source; not independently observed by Koskamo.
tdd_refactoring_guidance input schema
{
  "type": "",
  "required": null,
  "properties": null
}

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "mcp-python-refactoring": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/mcp-python-refactoring@sha256:4cd4303da424f021f03e9fafc46187a08bcab212ead6f1e39867afee1d42cd24"
      ]
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "mcp-python-refactoring": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/mcp-python-refactoring@sha256:4cd4303da424f021f03e9fafc46187a08bcab212ead6f1e39867afee1d42cd24"
      ]
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "mcp-python-refactoring": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/mcp-python-refactoring@sha256:4cd4303da424f021f03e9fafc46187a08bcab212ead6f1e39867afee1d42cd24"
      ]
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "mcp-python-refactoring": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/mcp-python-refactoring@sha256:4cd4303da424f021f03e9fafc46187a08bcab212ead6f1e39867afee1d42cd24"
      ]
    }
  }
}

Let your agent find its tools

Find servers like MCP Python Refactoring from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.