Skip to main content

A Watchtower MCP agent for managing campaign-channel bindings. Features: - Get campaign info by ID/name - Bind campaigns to channels - List C-type campaigns The agent operates as an MCP server component with JSON-based communication protocol.

Project description

mcp-watchtower-campaign-config-agent MCP server

An agent for managing campaign configurations and channel bindings in the MCP ecosystem.

Components

Tools

The server implements three tools:

  • get-campaign-info: Retrieves detailed campaign information

    • Takes either "campaignId" or "campaignName" as input
    • Returns comprehensive campaign details
  • bind-campaign-channel: Binds a campaign to a specified channel

    • Requires "channelName", "campaignId", and "campaignName"
    • Updates campaign-channel binding and confirms success
  • list-c-type-campaigns: Lists all C-type campaigns

    • No input required
    • Returns detailed information for each campaign including name, ID, channel, partner, creator, and timestamps

Configuration

The agent requires the following environment variables:

  • MCP_HOST: MCP server host (default: localhost)
  • MCP_PORT: MCP server port (default: 8080)
  • MCP_API_KEY: Authentication key for MCP server access
  • MCP_PUBLIC_KEY: Public key for secure communication

Create a .env file in the project root with these variables:

MCP_HOST=localhost
MCP_PORT=8080
MCP_API_KEY=your_api_key
MCP_PUBLIC_KEY=your_public_key

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration ``` "mcpServers": { "mcp-watchtower-campaign-config-agent": { "command": "uv", "args": [ "--directory", "/Users/user/Documents/projects/mcp-server/mcp-watchtower-campaign-config-agent", "run", "mcp-watchtower-campaign-config-agent" ] } } ```
Published Servers Configuration ``` "mcpServers": { "mcp-watchtower-campaign-config-agent": { "command": "uvx", "args": [ "mcp-watchtower-campaign-config-agent" ] } } ```

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /Users/user/Documents/projects/mcp-server/mcp-watchtower-campaign-config-agent run mcp-watchtower-campaign-config-agent

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

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_watchtower_campaign_config_agent-0.1.0.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file mcp_watchtower_campaign_config_agent-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mcp_watchtower_campaign_config_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 02e3fd90cd2b54b9ad2c4db447d545d6d23233c9c21018604a257d739a5380b9
MD5 e895d87f797696ca496ab520110c7293
BLAKE2b-256 b63e9cb1ce702a033272ef322c34b5628640c25084394a9ac8d926f53e2809af

See more details on using hashes here.

File details

Details for the file mcp_watchtower_campaign_config_agent-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_watchtower_campaign_config_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32c300645d0ee537995b87e4ce579d2065c4c72f3e3abc8e66fc3b8ae85c7508
MD5 2f27a86048cbee47a58bfc184e2a8629
BLAKE2b-256 aa89f9b41bc553659f16e1ffdeee1cd78c20c0961ab9b8d0d57c33f302aa4aa3

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