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
- MCP_SERVICE_NAME: Service name for routing (default: castle_datawork)
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
MCP_SERVICE_NAME=castle_datawork
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:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
This will create source and wheel distributions in the dist/ directory.
- Publish to PyPI:
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:
--tokenorUV_PUBLISH_TOKEN - Or username/password:
--username/UV_PUBLISH_USERNAMEand--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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_watchtower_campaign_config_agent-0.1.1.tar.gz.
File metadata
- Download URL: mcp_watchtower_campaign_config_agent-0.1.1.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce5d9418d7c46db5b3acbe360c275af65afaf15c90dd0768dae2d9bd423a0017
|
|
| MD5 |
ab92280fc8a311842f24c0343693882c
|
|
| BLAKE2b-256 |
d489fea4187b23320a1d833c4b38fa3dd22e1f93c93f29bb85b026ec7cd8bcbe
|
File details
Details for the file mcp_watchtower_campaign_config_agent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_watchtower_campaign_config_agent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77671a61e785fcba53bb5cca217cf876c3dc6e1378e6299fa1b33b68b98c615a
|
|
| MD5 |
22d3ad9abee2dff7fa791f4ff09944aa
|
|
| BLAKE2b-256 |
c7f30c9fbc2de561435ce8c1ae693bded481d062b3cb58e791f76e9a62bfe2f2
|