
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.
概覽
一個 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 執行個體的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP FreeScout,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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
buildServerfactory serves both 2025-era and 2026 MCP stdio clients
v3 runtime
- Requires Node.js 24 or newer.
- Uses
@modelcontextprotocol/server2.x with Zod 4 input schemas. - Serves both the 2025 legacy handshake and the 2026 stdio protocol from the same server factory.
- Delivers
structuredContentfor stable analysis and write-operation results without declaring output schemas. - Accepts FreeScout's successful
204 No Contentupdate 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):
With Cursor IDE
Add this to your Cursor MCP settings:
Method 1: Via Cursor Settings UI
- Open Cursor Settings (Cmd/Ctrl + ,)
- Search for "MCP"
- Click "Edit in settings.json"
- Add the MCP server configuration
Method 2: Manual Configuration
Add this to your Cursor settings.json or create ~/.cursor/mcp.json:
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:
- Clone this repository:
- Install dependencies:
- Build the TypeScript code:
- Configure your MCP client to use the local installation:
Usage with Other MCP Clients
Run the server directly:
Or in development mode with auto-reload:
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 URLincludeThreads(optional): Include conversation threads (default: true)
Natural Language Examples:
- "Show me ticket #12345"
- "Get the details for FreeScout ticket 34811"
- "Fetch ticket https://support.example.com/conversation/12345"
- "What's in ticket 12345?"
- "Pull up the conversation for ticket #34811"
Example:
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 URLnote(required): The note contentuserId(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 URLstatus(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 URLreplyText(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:
- itemor* item→ proper unordered lists - Line breaks: Double newlines create paragraphs, single newlines create line breaks
Workflow:
- Use
freescout_get_ticket_contextto get customer info and ticket details - Let the LLM craft a personalized reply using Markdown formatting
- Use
freescout_create_draft_replyto save the draft in FreeScout (Markdown automatically converted to HTML) - 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 querystatus(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/subjectassignee(optional): 'unassigned' | 'any' | user_id (number)status(optional): 'active' | 'pending' | 'closed' | 'spam' | 'all'state(optional): 'published' | 'deleted'mailboxId(optional): Filter by specific mailbox IDupdatedSince(optional): ISO date or relative time like "7d", "24h", "30m"createdSince(optional): ISO date or relative timepage(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"withstatus: "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
Complete Ticket Response Workflow
Draft Reply Workflow
Handling Non-Bug Issues
Architecture
Components
-
FreeScout API Client (
freescout-api.ts)- Handles all API communication with FreeScout
- Manages authentication and request formatting
- Provides ticket parsing utilities
-
Ticket Analyzer (
ticket-analyzer.ts)- Intelligent ticket content analysis
- Issue classification (bug vs feature vs configuration)
- Code snippet and error extraction
- Root cause determination
-
MCP Server (
index.ts)- Tool registration and request handling
- Fresh server factory for each stdio connection
- Response formatting and error handling
Data Flow
Development
Running in Development Mode
Running Tests
Linting
Building for Production
Configuration
Required Environment Variables
Optional Environment Variables
Advanced Configuration Example
For more control, you can specify additional environment variables:
FreeScout API Setup
- Log into your FreeScout instance as an administrator
- Navigate to Manage → API Keys
- 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):
After (v2.0):
For text search:
New Features to Adopt
- Relative time filters: Use
"7d","24h","30m"instead of calculating ISO dates - Pagination: Add
pageandpageSizeparameters for large result sets - 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:
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Submit a pull request
License
GPL-3.0 License - see LICENSE file for details
Support
For issues, questions, or suggestions:
- Open an issue on GitHub
- Contact Very Good Plugins
- Check the documentation
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版本歷史
1- v3.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分