Metadata-Version: 2.4
Name: mcp-server-port
Version: 0.1.1
Summary: A Model Context Protocol (MCP) server for Port.io integration
Author-email: Matan Grady <matan.g@getport.io>
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: httpx>=0.26.0
Requires-Dist: mcp[cli]>=1.0.1
Requires-Dist: python-dotenv>=1.0.0
Description-Content-Type: text/markdown

# Port MCP Server

MCP Server for the Port.io API, enabling Claude to interact with Port.io's AI agent.

## Tools

2. `trigger_port_agent`
   - Trigger the Port.io AI agent with a prompt and wait for completion
   - Required inputs:
     - `prompt` (string): The prompt to send to the Port.io AI agent
   - Returns: Agent response with status, output, and any required actions
   - Note: The agent may return action URLs for bug reports or other tasks that require user interaction

## Setup

1. Create a Port.io Account:
   - Visit [Port.io](https://www.getport.io/)
   - Sign up for an account if you don't have one

2. Create an API Key:
   - Navigate to your Port.io dashboard
   - Go to Settings > Credentials
   - Save both the Client ID and Client Secret

### Usage with Claude Desktop

Add the following to your `claude_desktop_config.json`:

```json


{
  "mcpServers": {
    "port": {
      "command": "uvx",
      "args": [
        "mcp-server-port",
        "--client-id", "YOUR_CLIENT_ID",
        "--client-secret", "YOUR_CLIENT_SECRET",
        "--region", "REGION", # US or EU
      ]
    }
  }
} 
```

### Usage with Cursor

Under the settings, MCP Servers, select
* Name - `Port`
* Type - `Command`
* Command - `uvx mcp-server-port --client-id=YOUR_CLIENT_ID --client-secret=YOUR_CLIENT_SECRET --region=YOUR_REGION`

### Troubleshooting

If you encounter authentication errors, verify that:
1. Your Port.io credentials are correctly set in the environment variables
2. The API key has the necessary permissions
3. The credentials are properly copied to your configuration

## Run

To run the server:

```bash
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate  # On Unix/macOS
# or
.venv\Scripts\activate  # On Windows

# Install dependencies
pip install -e .

# Run server
python -m src.mcp_server_port --client-id "CLIENT_ID" --client-secret "CLIENT_SECRET" --region "REGION"
```

## License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.