com.politicalcomms/api
Compliant political SMS/MMS from MCP clients: projects, contacts, analytics, billing.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
@political-comms/mcpclaude mcp add api -e 'POLITICAL_COMMS_API_KEY=<your political_comms_api_key>' -- npx -y @political-comms/mcp@0.2.1
{
"mcpServers": {
"api": {
"command": "npx",
"args": [
"-y",
"@political-comms/mcp@0.2.1"
],
"env": {
"POLITICAL_COMMS_API_KEY": "<your political_comms_api_key>"
}
}
}
}
متغيرات البيئة
POLITICAL_COMMS_API_KEYإلزامي سري Political Comms API key (pc_live_*), created by a human operator in the dashboard under Admin > API Keys
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
Political Comms SDK
Official client libraries and tools for the Political Comms REST API. Direct-to-carrier political texting for campaigns, PACs, advocacy organizations, fundraisers, and elected officials.
The API surface covers Projects (compose, test, schedule, send), Contact Lists, Media Files, Organizations and hierarchy, Brands, Campaigns, Tracking Domains, Phone Numbers, Analytics, Billing, and Email (sending domains, sender identities, lists and imports, suppressions, templates and AI drafts, and campaigns). The full OpenAPI 3.1 specification lives at politicalcomms.com/openapi.json and the reference documentation at docs.politicalcomms.com.
Packages
| Package | Registry | Description |
|---|---|---|
@political-comms/sdk | npm | TypeScript SDK. Zero dependencies, native fetch, built-in retries. |
@political-comms/cli | npm | Command line interface. npx @political-comms/cli auth check |
@political-comms/mcp | npm | MCP server for Claude and other MCP clients. |
political-comms | PyPI | Python SDK mirroring the TypeScript client. |
Authentication
Every client authenticates with an API key passed in the X-API-Key header. Keys are created in the dashboard under Admin > API and are prefixed pc_live_. All packages read the POLITICAL_COMMS_API_KEY environment variable by default.
Development
Node 20 or later and Python 3.10 or later.
npm install
npm run build
npm test
cd python
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
License
MIT. See LICENSE.
الأسئلة الشائعة
ما هو com.politicalcomms/api؟
Compliant political SMS/MMS from MCP clients: projects, contacts, analytics, billing.
كيف أثبّت com.politicalcomms/api؟
يعمل على جهازك. في Claude Code: claude mcp add api -e 'POLITICAL_COMMS_API_KEY=<your political_comms_api_key>' -- npx -y @political-comms/mcp@0.2.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج com.politicalcomms/api إلى مفتاح API؟
نعم. يتطلب POLITICAL_COMMS_API_KEY، وتضبطها في إعداداته.
هل com.politicalcomms/api مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون com.politicalcomms/api؟
ينشره Political-Comms. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.