|
| 1 | +# Gitpod MCP Server |
| 2 | + |
| 3 | +A Model Control Protocol (MCP) server that provides access to Gitpod resources and operations through Claude. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- List Gitpod projects |
| 8 | +- List Gitpod environments |
| 9 | +- Create new environments |
| 10 | +- Stop environments |
| 11 | +- Execute commands in environments |
| 12 | + |
| 13 | +## Claude Desktop Configuration |
| 14 | + |
| 15 | +1. Create a file containing your Gitpod personal access token: |
| 16 | +```bash |
| 17 | +echo "your_api_key_here" > /tmp/gitpod-personal-access-token.txt |
| 18 | +``` |
| 19 | + |
| 20 | +2. Build the server: |
| 21 | +```bash |
| 22 | +go build -o /tmp/gitpod-mcp |
| 23 | +``` |
| 24 | + |
| 25 | +3. Add the following to your Claude Desktop configuration to enable Gitpod integration: |
| 26 | + |
| 27 | +```json |
| 28 | +{ |
| 29 | + "mcpServers": { |
| 30 | + "gitpod": { |
| 31 | + "command": "/tmp/gitpod-mcp", |
| 32 | + "env": { |
| 33 | + "GITPOD_API_KEY": "your-key-here", |
| 34 | + } |
| 35 | + } |
| 36 | + } |
| 37 | +} |
| 38 | +``` |
| 39 | + |
| 40 | +>**Note:** Don't forget to delete the token file after you're done. |
| 41 | +
|
| 42 | +## Available Resources |
| 43 | + |
| 44 | +- `gitpod://projects` - List all available Gitpod projects |
| 45 | +- `gitpod://environments` - List current Gitpod environments |
| 46 | + |
| 47 | +## Available Tools |
| 48 | + |
| 49 | +### create_environment |
| 50 | +Creates a new Gitpod environment for a project. |
| 51 | +- Parameters: |
| 52 | + - `project_id` (string, required): The ID of the project to create the environment in |
| 53 | + |
| 54 | +### stop_environment |
| 55 | +Stops a running Gitpod environment. |
| 56 | +- Parameters: |
| 57 | + - `environment_id` (string, required): The ID of the environment to stop |
| 58 | + |
| 59 | +### execute_command |
| 60 | +Executes a command in a Gitpod environment. |
| 61 | +- Parameters: |
| 62 | + - `environment_id` (string, required): The ID of the environment to execute the command in |
| 63 | + - `command` (string, required): The command to execute (runs as a bash script in project root) |
| 64 | + - `description` (string, required): A short description of the command (max 200 characters) |
| 65 | +``` |
0 commit comments