This guide explains how to set up and run the MCP server, execute tests, and integrate with Claude Desktop.
- Python 3.10 or higher
- fastmcp package installed (pip install fastmcp)
- Claude Desktop application
├── main.py # MCP server implementation
├── test_mcp_tools.py # Test suite
├── config/
│ └── claude_desktop_config.json
├── logs/ # Log files directory
│ ├── mcpServer.log
│ └── work_log.json
└── tasks.json # Task management storage
This Project was built and tested in VSCode, and the instructions reflect that. You may have to modify the instructions if you are using a different IDE
First, create the necessary directories and files by running these commands in a powershell terminal:
mkdir logs
echo "[]" > tasks.json
echo "[]" > logs/work_log.jsonIn a powershell terminal, run the command:
pip install fastmcpIn a PowerShell terminal run the command:
python main.pyYou should see a FastMCP startup text, and no further output as the server communicates through stdin/stdout.
Open a second PowerShell terminal and run:
python test_mcp_tools.pyExpected Output:
Starting MCP server tests...
Testing analyze_file...
File analysis result: {
"lineCount": 5,
"hasTodos": true,
"hasFunctions": true,
"hasComments": true
}
✅ analyze_file test passed
Testing log_work...
...
- Open Claude Desktop
- Go to Settings > Developer
- Enable Developer Mode
- Update the MCP configuration:
{
"mcpServers": {
"software-support": {
"command": "python",
"args": ["path/to/server/file/main.py"],
}
}
}- In Claude Desktop, create a new chat
- Send a test message to use one of the MCP tools:
Can you analyze the file test_mcp_tools.py using the analyze_file tool?
- analyze_file: Analyzes code files for metrics
- log_work: Records work activities
- add_task: Creates new tasks
- list_tasks: Shows all tasks
- complete_task: Marks tasks as completed
-
Server Not Starting
- Check Python version:
python --version- Verify fastmcp installation:
pip list | findstr fastmcp -
Claude Desktop Connection Failed
- Verify the path in claude_desktop_config.json matches your project location
- Ensure Developer Mode is enabled
- Check Claude Desktop logs for connection errors
-
Tests Failing
- Make sure the MCP server is running in a separate terminal
- Check if tasks.json and log files exist
- Review logs/mcpServer.log for errors
Check the following logs for troubleshooting:
- Server logs: logs/mcpServer.log
- Work logs: logs/work_log.json
For additional support, review the error messages in the terminal output or check the Claude Desktop developer console.