MarkPushRec/example-mcp-server-backup
If you are the rightful owner of example-mcp-server-backup and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides a summary of a Model Context Protocol (MCP) server backup, highlighting an issue with the 'organize_imports' operation.
The MCP Server Backup repository contains a backup of an example MCP server that implements the rope tool. The current issue with this server is related to the 'organize_imports' operation, which is returning an error due to the incorrect use of the 'splitlines()' method on a ChangeSet object. This error indicates a need for debugging and potentially refactoring the code to ensure that the 'splitlines()' method is applied to a string rather than a ChangeSet object. The repository serves as a useful resource for developers looking to understand and resolve issues related to MCP server operations, particularly those involving code organization and import management.
Features
- Backup of an example MCP server
- Implementation of the rope tool
- Focus on 'organize_imports' operation
- Error handling and debugging
- Code refactoring guidance
Usages
usage with local integration stdio
python mcp.run(transport='stdio') # Tools defined via @mcp.tool() decorator
usage with local integration ide plugin
{ "mcpServers": { "example": { "command": "python", "args": ["example.py"] } } }
usage with remote integration sse
python mcp.run(transport='sse', host="0.0.0.0", port=8000) # Specify SSE endpoint
usage with remote integration streamable http
yaml paths: /mcp: post: x-ms-agentic-protocol: mcp-streamable-1.0 # Copilot Studio integration
usage with platform integration github
{"command": "docker", "args": ["run", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]}
usage with platform integration atlassian
{ "mcpServers": { "jira": { "command": "python", "args": ["jira_tool.py"] } } }
Tools
rope
A Python refactoring library used for organizing imports and other code modifications.