承接 daktela/daktela-v6-php-mcp-server 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

daktela/daktela-v6-php-mcp-server

Composer 安装命令:

composer require daktela/daktela-v6-php-mcp-server

包简介

Read-only MCP server for the Daktela contact center REST API v6

README 文档

README

Beta: This project is in early beta. APIs, tool names, and output formats may change in future releases.

Read-only MCP server for the Daktela contact center REST API v6. Gives any MCP-compatible LLM client (Claude, Cursor, etc.) full read access to tickets, calls, emails, chats, contacts, CRM records, campaigns, and real-time agent status.

Why

A contact center generates thousands of interactions daily — calls, emails, chats across multiple channels. The raw data is all in Daktela, but extracting insight from it requires either manual review or custom reporting. This server bridges Daktela to an LLM, letting you run analysis that would be impractical to do by hand:

  • Email quality audit — flag negative sentiment, unprofessional tone, and lost deals across all recent emails
  • Call transcript analysis — identify escalations, knowledge gaps, and unmet commitments from call recordings
  • Sales pipeline review — assess deal health across ticket stages, rank by urgency, and recommend actions

The LLM reads the actual conversation content — email bodies, chat messages, call transcripts — and applies judgment that no dashboard or filter can replicate.

Tools

43 read-only tools organized by domain:

Category Tools
Tickets count_tickets, get_ticket, get_ticket_detail, list_account_tickets, list_ticket_categories, list_tickets
Activities count_activities, get_activity, list_activities
Calls count_calls, get_call, get_call_transcript, list_call_transcripts, list_calls
Emails count_emails, get_email, list_emails
Messaging count_chats, get_chat, list_chats (supports webchat, SMS, Messenger, Instagram, WhatsApp, Viber)
Contacts & CRM count_accounts, count_contacts, count_crm_records, get_account, get_contact, get_crm_record, list_accounts, list_contacts, list_crm_records
Campaigns count_campaign_records, get_campaign_record, list_campaign_records, list_campaign_types
Reference data list_groups, list_pauses, list_queues, list_statuses, list_templates, list_users
Real-time list_realtime_sessions
Knowledge base get_article, list_article_folders, list_articles

All list tools support pagination (skip, take), sorting, and contextual filters (stage, priority, date range, user, queue, etc.). Input parameters are validated against enum values with clear error messages.

Prompts

4 built-in prompt templates for common analysis workflows:

Prompt Description
email_quality_audit Audit email quality — flags negative sentiment, unprofessional tone, and lost deals
sales_pipeline_review Review open sales tickets, assess deal health, and recommend actions
call_quality_review Review call transcripts for escalations, knowledge gaps, and coaching opportunities
daily_call_analysis Full AI-scored daily call analysis — flags churn risk, AI product issues, and handling quality

Resources

Resource URI Description
Instance info daktela://instance Connected Daktela instance URL and API version
Field schema daktela://schema Entity definitions, relationships, and valid filter values

Getting started

Prerequisites

  • PHP 8.2+
  • Composer
  • A Daktela instance with a user account that has API read access

Install

git clone https://github.com/Daktela/daktela-v6-php-mcp-server.git
cd daktela-v6-php-mcp-server
composer install

Run with Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

With Docker (recommended):

{
  "mcpServers": {
    "daktela": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "DAKTELA_URL=https://your-instance.daktela.com",
        "-e", "DAKTELA_ACCESS_TOKEN=your-api-token",
        "daktela-v6-php-mcp-server"
      ]
    }
  }
}

With PHP directly:

{
  "mcpServers": {
    "daktela": {
      "command": "php",
      "args": ["/path/to/daktela-v6-php-mcp-server/bin/server.php"],
      "env": {
        "DAKTELA_URL": "https://your-instance.daktela.com",
        "DAKTELA_ACCESS_TOKEN": "your-api-token"
      }
    }
  }
}

Run with Docker

# Build the production image
docker build -f Dockerfile.prod -t daktela-v6-php-mcp-server .

# Run with stdio transport
docker run -i --rm \
  -e DAKTELA_URL=https://your-instance.daktela.com \
  -e DAKTELA_ACCESS_TOKEN=your-api-token \
  daktela-v6-php-mcp-server

# Run HTTP server (for remote deployments)
docker run --rm -p 8080:8080 \
  -e DAKTELA_URL=https://your-instance.daktela.com \
  -e DAKTELA_ACCESS_TOKEN=your-api-token \
  daktela-v6-php-mcp-server php bin/http-server.php

Deploy as HTTP server

For shared or remote deployments (e.g., Cloud Run), the server runs in streamable-http mode where each client passes credentials via HTTP headers:

gcloud run deploy daktela-v6-php-mcp-server \
  --source . \
  --dockerfile Dockerfile.prod \
  --region europe-west1 \
  --allow-unauthenticated \
  --memory 1Gi

Architecture

src/
├── DaktelaMcpServer.php       Main server — registers tools, prompts, resources
├── Version.php                Version from composer.json
├── Auth/                      Authentication & URL validation
├── Cache/                     Reference data caching (TTL)
├── Client/                    Daktela API client wrapper
├── Config/                    Configuration resolution (env vars)
├── Enum/                      PHP enums (TicketStage, Priority, Direction, etc.)
├── Filter/                    Query filter & date range builders
├── Formatter/                 Markdown output formatters per entity
├── Http/                      HTTP request handler (CORS, health, routing)
├── Log/                       Structured JSON logger (stderr)
├── Prompt/                    MCP prompt templates
├── Resolver/                  Name resolution (users, folders, tags)
├── Resource/                  MCP resources (instance info, schema)
├── Session/                   Session store for HTTP mode
├── Tool/                      11 tool classes (tickets, calls, emails, etc.)
└── Validation/                Input validation using PHP enums

Configuration

Environment variable Default Description
DAKTELA_URL Daktela instance URL (required)
DAKTELA_ACCESS_TOKEN API access token (required)
CACHE_ENABLED true Enable reference data cache
CACHE_TTL_SECONDS 3600 Cache TTL in seconds

See .env.example for a template.

Development

# Run in Docker (as per project convention)
docker compose run php composer install
docker compose run php composer test
docker compose run php composer analyse
docker compose run php vendor/bin/php-cs-fixer fix --dry-run --diff

License

Proprietary. Requires an active Daktela Contact Center license. See LICENSE for details.

daktela/daktela-v6-php-mcp-server 适用场景与选型建议

daktela/daktela-v6-php-mcp-server 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 27 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「API-Client」 「mcp」 「model-context-protocol」 「daktela」 「contact-center」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 daktela/daktela-v6-php-mcp-server 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 daktela/daktela-v6-php-mcp-server 我们能提供哪些服务?
定制开发 / 二次开发

基于 daktela/daktela-v6-php-mcp-server 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 26
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-02-27