Start MCP server
()
| 1485 | |
| 1486 | |
| 1487 | def main(): |
| 1488 | """Start MCP server""" |
| 1489 | print("🚀 Code Implementation MCP Server") |
| 1490 | print( |
| 1491 | "📝 Paper Code Implementation Tool Server / Paper Code Implementation Tool Server" |
| 1492 | ) |
| 1493 | print("") |
| 1494 | print("Available tools / Available tools:") |
| 1495 | # print(" • read_file - Read file contents / Read file contents") |
| 1496 | print( |
| 1497 | " • read_code_mem - Read code summary from implement_code_summary.md / Read code summary from implement_code_summary.md" |
| 1498 | ) |
| 1499 | print(" • write_file - Write file contents / Write file contents") |
| 1500 | print(" • execute_python - Execute Python code / Execute Python code") |
| 1501 | print(" • execute_bash - Execute bash command / Execute bash commands") |
| 1502 | print(" • search_code - Search code patterns / Search code patterns") |
| 1503 | print(" • get_file_structure - Get file structure / Get file structure") |
| 1504 | print(" • set_workspace - Set workspace / Set workspace") |
| 1505 | print(" • get_operation_history - Get operation history / Get operation history") |
| 1506 | print("") |
| 1507 | print("🔧 Server starting...") |
| 1508 | |
| 1509 | # Initialize default workspace |
| 1510 | initialize_workspace() |
| 1511 | |
| 1512 | # Start server |
| 1513 | mcp.run() |
| 1514 | |
| 1515 | |
| 1516 | if __name__ == "__main__": |
no test coverage detected