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»).

NPM package @political-comms/mcp
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 (Claude Desktop وCursor وVS Code)
{
    "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.

المحتويات
  1. Political Comms SDK
  2. Packages
  3. Authentication
  4. Development
  5. License

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

PackageRegistryDescription
@political-comms/sdknpmTypeScript SDK. Zero dependencies, native fetch, built-in retries.
@political-comms/clinpmCommand line interface. npx @political-comms/cli auth check
@political-comms/mcpnpmMCP server for Claude and other MCP clients.
political-commsPyPIPython 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 الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.