Skip to main content

A Model Context Protocol (MCP) server for Port.io integration

Project description

Port MCP Server

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

Tools

  1. get_port_token

    • Get a Port.io authentication token
    • No inputs required
    • Returns: Authentication token with expiration information
  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
    • 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:

{
  "mcpServers": {
    "port": {
      "command": "/path/to/your/venv/bin/python",
      "args": [
        "/path/to/port-mcp-server/src/mcp_server_port/server.py"
      ],
      "env": {
        "PORT_CLIENT_ID": "your-client-id",
        "PORT_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

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:

# 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 mcp_server_port

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_port-0.0.11.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_port-0.0.11-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_port-0.0.11.tar.gz.

File metadata

  • Download URL: mcp_server_port-0.0.11.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for mcp_server_port-0.0.11.tar.gz
Algorithm Hash digest
SHA256 7308c14814b7f25580bfe7c717cc0fb1b599af45134a25ff7c1906a96c57e4b0
MD5 762a0b3b216f91e5e9c02641dd165df5
BLAKE2b-256 a4f0713db83cadb3d157cac8d0de80a36f9c1657b4ac7f2653582347104917bc

See more details on using hashes here.

File details

Details for the file mcp_server_port-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_port-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1e09c2730aad239a6ac93e3a0e8ce4bd098db00dc5f8f3f75278f21811fc8227
MD5 e171b114bdc7ce903fdaddc2a57a97ef
BLAKE2b-256 2d19b16605445efa914988ef16da5db84734fbc4e863af18c01a7b4dc8beec21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page