MCP FreeScout

io.github.verygoodplugins由 GitHub 账号 verygoodplugins 发布v3.1.0更新于 Oct 25, 2026

FreeScout ticket management with AI-powered analysis, search filters, and structured outputs.

已验证STDIO仅桌面沟通与协作商业与电商

概览

AI 生成的概览

一个 MCP 服务器,让助手连接 FreeScout 客服系统,获取、分析、搜索和更新工单,并生成回复草稿。

可以做什么
获取并阅读工单及其对话记录,以及用于撰写回复的工单上下文和客户信息。分析工单的问题类型、根本原因和建议解决方案。按文本、状态、负责人、邮箱和相对时间等条件搜索工单,并列出邮箱。更新工单状态和负责人,添加内部备注。在 FreeScout 中创建客户回复草稿,并将 Markdown 转换为 HTML。
适用场景
适合使用 FreeScout 的客服团队,希望助手对工单进行分类、区分缺陷与功能请求、按条件查找工单,并准备供审核的回复草稿和内部备注。
运行要求
通过 npx 或本地 Node.js 安装运行,需要 Node.js 24 或更高版本。需要启用 API 访问的 FreeScout 实例,在 FREESCOUT_URL 中填写实例地址,并在 FREESCOUT_API_KEY 中提供具有读写权限的 API 密钥。FREESCOUT_DEFAULT_USER_ID 为可选项。需要能访问该 FreeScout 实例的网络。
安装前请注意
FREESCOUT_API_KEY 中的 API 密钥具有工单读写权限,请妥善保管。服务器可更改工单状态和负责人、添加内部备注,并创建带指定收件人的回复草稿;发送前应在 FreeScout 中审核草稿。工单和客户数据会发送到所配置的 FreeScout 实例以及所使用的 AI 模型。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MCP FreeScout,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

FreeScout MCP Server

An MCP (Model Context Protocol) server for FreeScout helpdesk ticket management. This server provides tools to interact with FreeScout tickets, analyze issues, and manage customer responses.

Features

  • 🎫 Ticket Management: Fetch, analyze, and update FreeScout tickets
  • 🔍 Intelligent Analysis: Automatically analyze tickets to determine issue type, root cause, and solutions
  • 💬 Draft Responses: Generate customer replies based on ticket analysis
  • 📊 Advanced Search: First-class filter parameters with relative time support ("7d", "24h")
  • 🔒 Type Safety: Full Zod schema validation with structured outputs
  • 🔁 Reliability: Automatic retry logic with exponential backoff for transient failures
  • ⚡ Protocol-ready stdio: A fresh buildServer factory serves both 2025-era and 2026 MCP stdio clients

v3 runtime

  • Requires Node.js 24 or newer.
  • Uses @modelcontextprotocol/server 2.x with Zod 4 input schemas.
  • Serves both the 2025 legacy handshake and the 2026 stdio protocol from the same server factory.
  • Delivers structuredContent for stable analysis and write-operation results without declaring output schemas.
  • Accepts FreeScout's successful 204 No Content update responses and records the user ID that initiated a ticket update.

Installation

Prerequisites

  • Node.js 24 or higher
  • FreeScout instance with API access enabled

Quick Start (Recommended)

The easiest way to use this MCP server is with npx:

With Claude Desktop

Add this to your Claude Desktop settings (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

json
{  "mcpServers": {    "freescout": {      "command": "npx",      "args": ["@verygoodplugins/mcp-freescout@latest"],      "env": {        "FREESCOUT_URL": "https://your-freescout-domain.com",        "FREESCOUT_API_KEY": "your-api-key-here"      }    }  }}

With Cursor IDE

Add this to your Cursor MCP settings:

Method 1: Via Cursor Settings UI

  1. Open Cursor Settings (Cmd/Ctrl + ,)
  2. Search for "MCP"
  3. Click "Edit in settings.json"
  4. Add the MCP server configuration

Method 2: Manual Configuration Add this to your Cursor settings.json or create ~/.cursor/mcp.json:

json
{  "mcp": {    "servers": {      "freescout": {        "command": "npx",        "args": ["@verygoodplugins/mcp-freescout@latest"],        "env": {          "FREESCOUT_URL": "https://your-freescout-domain.com",          "FREESCOUT_API_KEY": "your-api-key-here"        }      }    }  }}

The server communicates only with the FreeScout instance configured in its environment.

Manual Installation (Alternative)

If you prefer to install and run the server locally:

  1. Clone this repository:
bash
git clone https://github.com/verygoodplugins/mcp-freescout.gitcd mcp-freescout
  1. Install dependencies:
bash
npm install
  1. Build the TypeScript code:
bash
npm run build
  1. Configure your MCP client to use the local installation:
json
{  "mcpServers": {    "freescout": {      "command": "node",      "args": ["/path/to/mcp-freescout/dist/index.js"],      "env": {        "FREESCOUT_URL": "https://your-freescout-domain.com",        "FREESCOUT_API_KEY": "your-api-key-here"      }    }  }}

Usage with Other MCP Clients

Run the server directly:

bash
npm start

Or in development mode with auto-reload:

bash
npm run dev

Available Tools

Core Ticket Operations

freescout_get_ticket

Fetch a FreeScout ticket with all its details and conversation threads.

Parameters:

  • ticket (required): Ticket ID, number, or FreeScout URL
  • includeThreads (optional): Include conversation threads (default: true)

Natural Language Examples:

Example:

javascript
{  "ticket": "12345",  "includeThreads": true}

Example: Fetching a FreeScout ticket with conversation threads

[FreeScout ticket details and conversation threads displayed in Cursor chat interface]

freescout_analyze_ticket

Analyze a ticket to determine issue type, root cause, and suggested solutions.

Parameters:

  • ticket (required): Ticket ID, number, or FreeScout URL

Natural Language Examples:

  • "Analyze ticket #12345"
  • "What kind of issue is ticket 34811?"
  • "Can you analyze this ticket and tell me if it's a bug?"
  • "Examine ticket #12345 and determine the root cause"
  • "Is this ticket a bug or feature request?"

Returns:

  • Customer information
  • Issue description and classification
  • Code snippets and error messages
  • Reproducibility status
  • Root cause analysis
  • Bug vs feature request vs third-party issue determination

Example: Intelligent ticket analysis with issue classification

[Ticket analysis showing issue type, root cause, and implementation recommendations]

freescout_add_note

Add an internal note to a ticket for team communication.

Parameters:

  • ticket (required): Ticket ID, number, or FreeScout URL
  • note (required): The note content
  • userId (optional): User ID for the note (defaults to env setting)

Natural Language Examples:

  • "Add a note to ticket #12345 saying 'Reproduced on staging'"
  • "Leave an internal note on this ticket"
  • "Add a team note: 'Customer confirmed fix works'"
  • "Note on ticket 34811: 'Escalating to development team'"
  • "Add internal documentation to this ticket"
freescout_update_ticket

Update ticket status and/or assignment.

Parameters:

  • ticket (required): Ticket ID, number, or FreeScout URL
  • status (optional): New status ('active', 'pending', 'closed', 'spam')
  • assignTo (optional): User ID to assign the ticket to

Natural Language Examples:

  • "Close ticket #12345"
  • "Mark ticket 34811 as pending"
  • "Assign this ticket to user ID 2"
  • "Set ticket status to active"
  • "Update ticket #12345 status to closed and assign to user 1"
freescout_create_draft_reply

Create a draft reply in FreeScout that can be edited before sending. This tool lets the LLM generate the reply content and saves it directly to FreeScout as a draft. Automatically converts Markdown formatting to HTML for proper display in FreeScout.

Parameters:

  • ticket (required): Ticket ID, number, or FreeScout URL
  • replyText (required): The draft reply content (generated by the LLM, supports Markdown formatting)
  • userId (optional): User ID creating the draft (defaults to env setting)
  • to (optional): List of TO recipients. Omit to preserve existing recipients; pass [] to clear.
  • cc (optional): List of CC recipients. Omit to preserve existing recipients; pass [] to clear.
  • bcc (optional): List of BCC recipients. Omit to preserve existing recipients; pass [] to clear.

Natural Language Examples:

  • "Create a draft reply for ticket #12345"
  • "Draft a customer response for this ticket"
  • "Generate and save a draft reply explaining the fix"
  • "Write a draft response to the customer for ticket 34811"
  • "Create a draft reply thanking the customer and explaining the solution"

If recipient fields are omitted, the server preserves the current conversation recipients from FreeScout when available. If FreeScout does not expose existing to recipients on the conversation, its normal default customer recipient behavior is preserved.

Markdown Support:

  • Bold text: **text** or __text__ → text
  • Italic text: *text* or _text_ → text
  • Code: `code` → code
  • Numbered lists: 1. item → proper ordered lists
  • Bullet lists: - item or * item → proper unordered lists
  • Line breaks: Double newlines create paragraphs, single newlines create line breaks

Workflow:

  1. Use freescout_get_ticket_context to get customer info and ticket details
  2. Let the LLM craft a personalized reply using Markdown formatting
  3. Use freescout_create_draft_reply to save the draft in FreeScout (Markdown automatically converted to HTML)
  4. Review and edit the draft in FreeScout before sending

Example: Draft reply workflow with personalized customer response

[Draft reply generation showing personalized customer message with ticket context]

[Draft reply automatically saved to FreeScout]

freescout_get_ticket_context

Get ticket context and customer information to help craft personalized replies.

Parameters:

  • ticket (required): Ticket ID, number, or FreeScout URL

Natural Language Examples:

  • "Get context for ticket #12345 to write a reply"
  • "I need customer info and ticket details for drafting a response"
  • "Gather context for this ticket so I can write a personalized reply"
  • "Pull customer information and issue details for ticket 34811"
  • "Get ticket context to help craft a customer response"

Returns:

  • Customer name and email
  • Ticket subject and status
  • Issue description and analysis
  • Recent customer and team messages
  • Analysis results (bug vs feature vs third-party issue)
freescout_search_tickets

Search for tickets across your FreeScout instance.

Parameters:

  • query (required): Search query
  • status (optional): Filter by status ('active', 'pending', 'closed', 'spam', 'all')
  • mailboxId (optional): Filter by specific mailbox ID (searches all mailboxes if not specified)

Natural Language Examples:

  • "Search for tickets containing 'OAuth error'"
  • "Find all pending tickets with 'HighLevel' in them"
  • "Search for closed tickets about 'plugin conflicts'"
  • "Look for tickets from customer '[email protected]'"
  • "Find all active tickets related to 'authentication'"
  • "Search for tickets in mailbox 1 containing 'bug report'"
  • "Find tickets in mailbox 2 with status pending"

Search Parameters (v2.0+):

  • textSearch (optional): Plain text search in ticket content/subject
  • assignee (optional): 'unassigned' | 'any' | user_id (number)
  • status (optional): 'active' | 'pending' | 'closed' | 'spam' | 'all'
  • state (optional): 'published' | 'deleted'
  • mailboxId (optional): Filter by specific mailbox ID
  • updatedSince (optional): ISO date or relative time like "7d", "24h", "30m"
  • createdSince (optional): ISO date or relative time
  • page (optional): Page number for pagination (min: 1)
  • pageSize (optional): Results per page (min: 1, max: 100)

Search Tips for AI Agents:

  • For unassigned tickets: Use assignee: "unassigned" with status: "active"
  • For recent tickets: Use updatedSince: "7d" for last 7 days
  • For specific user: Use assignee: 123 (user ID number)
  • Status "active" = open/active tickets (NOT "open" - that's invalid)
  • Use freescout_get_mailboxes first if filtering by mailbox
  • Combine filters: { textSearch: "error", assignee: "unassigned", updatedSince: "24h" }
freescout_get_mailboxes

Get a list of all available mailboxes in your FreeScout instance.

Parameters: None

Natural Language Examples:

  • "Show me all available mailboxes"
  • "List the mailboxes in FreeScout"
  • "What mailboxes are configured?"
  • "Get mailbox information"

Workflow Examples

Basic Ticket Analysis

javascript
// Analyze a ticket to understand the issueawait mcp.callTool('freescout_analyze_ticket', {  ticket: '12345',});

Complete Ticket Response Workflow

javascript
// 1. Analyze the ticket to understand the issueconst analysis = await mcp.callTool('freescout_analyze_ticket', {  ticket: '12345',});
// 2. Get ticket context for personalized replyconst context = await mcp.callTool('freescout_get_ticket_context', {  ticket: '12345',});
// 3. Create a draft reply directly in FreeScoutawait mcp.callTool('freescout_create_draft_reply', {  ticket: '12345',  replyText: `Hi ${context.customer.name},
Thank you for reaching out! Based on my analysis, I can see that ${analysis.issueDescription}.
Here's what I found:
1. **Issue Type**: ${analysis.isBug ? 'Bug' : 'Configuration/Feature Request'}2. **Root Cause**: ${analysis.rootCause || 'Under investigation'}
I'll look into this and get back to you shortly with a solution.
Best regards,[Your name]`,  cc: ['[email protected]'],});
// 4. Update ticket status and assignmentawait mcp.callTool('freescout_update_ticket', {  ticket: '12345',  status: 'active',  assignTo: 1,});
// 5. Add an internal note with findingsawait mcp.callTool('freescout_add_note', {  ticket: '12345',  note: `Analysis complete:- Is Bug: ${analysis.isBug}- Third-party Issue: ${analysis.isThirdPartyIssue}- Root Cause: ${analysis.rootCause}`,});

Draft Reply Workflow

javascript
// 1. Get ticket context for personalized replyconst context = await mcp.callTool('freescout_get_ticket_context', {  ticket: '34811',});
// 2. Create draft reply in FreeScout (LLM crafts the content)await mcp.callTool('freescout_create_draft_reply', {  ticket: '34811',  replyText: `Hi ${context.customer.name},
Thank you for reporting the HighLevel OAuth authorization issue! Your experience with the EngageBay LiveChat plugin conflict has been really valuable.
Based on what we learned from your case, I've added a new plugin conflict detection system to WP Fusion. In the next update (v3.46.7), users will see:
🔍 **Plugin Conflict Detection**- Automatic detection of known conflicting plugins  - Warning messages before HighLevel authorization- Clear guidance when conflicts are detected
This should prevent the confusion you experienced and help other users avoid similar issues.
The update should be available within the next few weeks. Thanks for your patience and for helping us improve the plugin!
Best regards,Jack`,  to: ['[email protected]'],  cc: ['[email protected]'],});
// The draft is now saved in FreeScout and can be reviewed/edited before sending

Handling Non-Bug Issues

javascript
// For third-party issues or feature requestsconst reply = await mcp.callTool('freescout_create_draft_reply', {  ticket: '12345',  replyText: 'This is a limitation of the Elementor plugin that we cannot override.',});

Architecture

Components

  1. FreeScout API Client (freescout-api.ts)

    • Handles all API communication with FreeScout
    • Manages authentication and request formatting
    • Provides ticket parsing utilities
  2. Ticket Analyzer (ticket-analyzer.ts)

    • Intelligent ticket content analysis
    • Issue classification (bug vs feature vs configuration)
    • Code snippet and error extraction
    • Root cause determination
  3. MCP Server (index.ts)

    • Tool registration and request handling
    • Fresh server factory for each stdio connection
    • Response formatting and error handling

Data Flow

MCP client (2025 or 2026) → stdio entry → buildServer → FreeScout API                                                   ↓                                            Ticket analysis                                                   ↓                                            Response to client

Development

Running in Development Mode

bash
npm run dev

Running Tests

bash
npm test

Linting

bash
npm run lint

Building for Production

bash
npm run build

Configuration

Required Environment Variables

VariableDescriptionExample
FREESCOUT_URLYour FreeScout instance URLhttps://support.example.com
FREESCOUT_API_KEYFreeScout API keyyour-api-key-here

Optional Environment Variables

VariableDescriptionDefault
FREESCOUT_DEFAULT_USER_IDDefault user ID for assignments1

Advanced Configuration Example

For more control, you can specify additional environment variables:

json
{  "mcpServers": {    "freescout": {      "command": "npx",      "args": ["@verygoodplugins/mcp-freescout@latest"],      "env": {        "FREESCOUT_URL": "https://support.example.com",        "FREESCOUT_API_KEY": "your-api-key",        "FREESCOUT_DEFAULT_USER_ID": "2"      }    }  }}

FreeScout API Setup

  1. Log into your FreeScout instance as an administrator
  2. Navigate to Manage → API Keys
  3. Create a new API key with appropriate permissions:
    • View conversations
    • Update conversations
    • Create threads (for notes)

Best Practices

Ticket Analysis

  • Always analyze tickets before implementing fixes
  • Check for third-party limitations before attempting fixes
  • Verify reproducibility with team notes

Customer Communication

  • Generate draft replies for review
  • Include fix descriptions in customer communications
  • Use explanatory replies for non-bug issues

Migration from v1.x to v2.0

Breaking Changes

The freescout_search_tickets tool has been redesigned with explicit filter parameters. The old query-string syntax is no longer supported.

Before (v1.x):

json
{  "query": "assignee:null",  "status": "active"}

After (v2.0):

json
{  "assignee": "unassigned",  "status": "active"}

For text search:

json
{  "textSearch": "authentication error",  "assignee": "unassigned",  "updatedSince": "7d"}

New Features to Adopt

  1. Relative time filters: Use "7d", "24h", "30m" instead of calculating ISO dates
  2. Pagination: Add page and pageSize parameters for large result sets
  3. Structured outputs: Stable analysis and write results include structuredContent; tools do not declare output schemas

Automatic Retries

The server now automatically retries failed requests with exponential backoff. No configuration needed - it just works more reliably.

Troubleshooting

Common Issues

API Connection Errors
  • Verify your FreeScout URL includes the protocol (https://)
  • Check API key permissions in FreeScout
  • Ensure your FreeScout instance has API access enabled
  • New in v2.0: The server will automatically retry transient connection errors
Ticket Parsing Issues
  • The server accepts ticket IDs, numbers, and full URLs
  • URLs are automatically parsed to extract ticket IDs
  • Numeric inputs are treated as ticket IDs
Rate Limiting (429 Errors)
  • New in v2.0: The server automatically detects rate limits and backs off
  • Retry logic includes exponential backoff with jitter
  • No manual intervention needed

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Submit a pull request

License

GPL-3.0 License - see LICENSE file for details

Support

For issues, questions, or suggestions:


Built with 🧡 by Very Good Plugins

Roadmap

  • Batch ticket operations
  • Webhook support for real-time updates
  • Template system for common replies
  • Integration with CI/CD pipelines
  • Advanced search filters
  • Ticket metrics and analytics
  • Multi-language support for customer replies
  • Attachment handling
  • Custom field support
  • Automated testing integration

来源:README.md,提交 e3430ff

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v3.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分