A Modal Context Protocol (MCP) server that enables Claude Desktop to interact with Gitpod's API. This integration allows Claude to create Gitpod environments, check identity information, and perform other Gitpod-related tasks directly through natural language commands.
- π Secure Authentication: Uses Gitpod API tokens for secure access
- π Real-time Integration: Direct integration with Gitpod's API
- π€ Natural Language Interface: Interact with Gitpod using natural language through Claude
- π Comprehensive Logging: Detailed logging for debugging and monitoring
- π Environment Management: Create and manage Gitpod environments easily
- β‘ Command Execution: Run commands in your environments directly
-
get-identity
- Get authenticated identity information from Gitpod
- No additional parameters required
-
create-environment
- Create a new Gitpod environment from a repository URL
- Optional parameter:
repository_url(defaults to https://github.com/gitpod-io/empty)
-
create-environment-with-command
- Create a new Gitpod environment and run a command in it
- Required parameter:
command(command to run in the environment) - Optional parameter:
repository_url(defaults to https://github.com/gitpod-io/empty)
- Python 3.8 or higher
- Claude Desktop application
- Gitpod flex account and API token
- Clone the repository and install dependencies:
git clone https://github.com/gitpod-io/gitpod-sdk-python
cd gitpod-sdk-python
./scripts/bootstrap-
Get your Gitpod API token from Gitpod Flex Dashboard
-
Configure Claude Desktop: Create or update
~/Library/Application\ Support/Claude/claude_desktop_config.json:{ "mcpServers": { "gitpod-mcp": { "command": "python", "args": [ "/path/to/gitpod-sdk-python/examples/mcp-server/server.py" ], "env": { "GITPOD_LOG": "info", "GITPOD_API_KEY": "your-gitpod-api-token-here" } } } }
Here are some ways you can interact with the MCP server through Claude Desktop:
-
Check your Gitpod identity:
"Get my Gitpod identity" -
Create a new environment:
"Create a Gitpod environment" "Create a Gitpod environment for https://github.com/my/repo" -
Create an environment and run a command:
"Create a Gitpod environment and run 'echo Hello World'" "Create an environment from https://github.com/my/repo and run 'npm install'"
The server logs all activities to gitpod_mcp.log in the project directory. Common issues:
-
Authentication Errors
- Verify your Gitpod API token is valid
- Check if the token has the required scopes
- Look for authentication errors in the log
-
Environment Creation Issues
- Ensure the repository URL is accessible
- Check if you have an environment class available
- Verify your Gitpod account has available resources
-
Command Execution Problems
- Make sure the command is valid for the environment
- Check if the environment is fully initialized
- Look for command execution errors in the logs