
Front MCP
io.github.wearehoust由 GitHub 账号 wearehoust 发布v1.0.1更新于 Oct 24, 2026
MCP server for Front: conversations, contacts, messages, tags, and inbox workflows.
概览
让助手通过 26 个工具、172 个操作处理 Front 的客户会话、联系人、消息、标签和收件箱工作流。
- 可以做什么
- 把 MCP 客户端连接到 Front API,使助手可以搜索和读取会话、查看消息、列出和管理联系人、标签、收件箱、团队成员和知识库,并创建草稿或发送回复。操作按工具分组,例如 conversations、contacts、messages、tags、drafts 和 analytics。策略引擎把每个操作分为读取、写入或破坏性三类:写入操作需要两步确认,破坏性操作默认被拒绝。
- 适用场景
- 适合已经使用 Front 共享收件箱和客服流程的团队,希望助手在不离开聊天客户端的情况下查找会话、总结会话串、管理联系人和标签,或起草回复。它面向客服与运营工作流,而不是通用的网页或文件任务。
- 运行要求
- 通过 npm 包 @houst-com/front-mcp 以 stdio 在本地运行,需要 Node.js 和 npx。需要 Front 账号,可用 FRONT_API_TOKEN 中的 API 令牌认证,或用 FRONT_MCP_AUTH_METHOD 与 FRONT_MCP_OAUTH_SECRET 走 OAuth,并在 Front 中配置 OAuth 应用和重定向 URI。Front 权限(Read、Write、Delete、Send)必须与所用操作匹配。仅支持桌面端,无 HTTP 或 SSE 传输。
安装
在 SourceWeft 中
- 打开 控制台中的 Front MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Front MCP
[CI] [npm] [License: MIT] [Node] [TypeScript] [MCP] [Front API]
Use Front from MCP clients that support local stdio servers. Search conversations, manage contacts, send messages, tag, assign, and automate inbox workflows — 26 tools, 172 actions.
Quick Start
-
Get a Front API token from Settings > Developers > API tokens.
-
Add this server to the top-level
mcpServersobject in your Claude Code user configuration (~/.claude.json), preserving any existing settings and servers. For a shared project configuration, use.mcp.jsoninstead. See Claude Code's MCP configuration guide.
- Start Claude Code. The Front tools are now available.
Node.js 20 or newer is required. The server runs locally using your own Front credentials; no Houst-hosted service is required. Keep API tokens out of version control; shared .mcp.json files should use "FRONT_API_TOKEN": "${FRONT_API_TOKEN}" and set that variable in the environment that launches Claude Code.
Example Workflows
Search for a conversation:
"Search Front conversations about billing issues"
Inspect a thread:
"Get the messages in conversation cnv_abc123"
Manage contacts:
"List contacts and find the one with email [email protected]"
Tag and assign:
"Tag conversation cnv_abc123 with 'urgent' and assign it to teammate tea_xyz"
Draft a reply:
"Create a draft reply to conversation cnv_abc123 saying we'll follow up tomorrow"
OAuth Setup (Recommended)
OAuth provides automatic token refresh and better security than API tokens.
- Create a Front app at Settings > Developers > OAuth apps.
- Set the redirect URI to
https://localhost:9876/callback. - Enable the resource permissions your MCP server needs (Read, Write, Delete, Send).
- Save the app — copy the Client ID from the OAuth feature (not the App secret from Settings).
- Create
~/.front-mcp/config.json:
- Configure Claude Code:
- Run
npx @houst-com/front-mcp authto authenticate (opens browser). - Tokens are encrypted and stored locally (AES-256-GCM, 0600 permissions).
Auth CLI
Front Permissions
The MCP server needs Front API permissions matching the actions you want to use:
For OAuth, configure these in your Front app under Features > OAuth > Resource permissions. For API tokens, permissions are set when creating the token.
Tools Reference
See docs/TOOL_REFERENCE.md for the complete reference with policy tiers per action.
Policy Engine
Every action is classified into a tier with a default decision:
Write actions require a two-step confirmation: the first call returns a prompt, the second call with confirm: true executes. Destructive actions are denied by default.
Custom Policy
Create ~/.front-mcp/policy.json:
Override precedence: specific action > tool wildcard > tier default.
Security Model
- HTTPS enforced — no HTTP fallback, ever
- Token encryption — AES-256-GCM with PBKDF2 key derivation
- File permissions — token file is 0600 (owner read/write only)
- Output sanitization — configurable field redaction before LLM sees data
- Log redaction — sensitive fields redacted from all log output
- Policy engine — destructive actions denied by default, write actions require confirmation
- No secrets in stdout — stdout is reserved for MCP protocol only
- Minimal dependencies — native fetch, Node.js crypto, pinned exact versions
Environment Variables
Limitations
- stdio transport only — no HTTP/SSE transport in v1 (planned for future)
- Single Front account — one account per server instance
- No webhook support — outbound API calls only, no inbound event processing
- No caching — every request hits the Front API (relies on Front's freshness)
- Attachments — file upload/download not supported in v1
- Application channels — channel-specific message sync endpoints not supported
Development
Testing
The project includes 519 unit/integration tests and a 172-action live API test script (scripts/live-test-full.js).
Release Process
- Update
package.jsonandpackage-lock.jsonwithnpm version X.Y.Z --no-git-tag-version. Update both version fields inserver.json, the server version insrc/server.ts, andCHANGELOG.md. - Confirm npm trusted publishing is configured for
wearehoust/front-mcpand therelease.ymlworkflow. The release workflow uses GitHub OIDC for npm and the MCP Registry. - Run
npm ci, lint, type-check, tests, build, and smoke. Check the packed npm artifact and its MCP handshake version. - Commit as
chore: release vX.Y.Z, open a PR, and merge after CI and review pass. - Fetch main and create an annotated
vX.Y.Ztag on the verified release commit. Push only that tag withgit push origin refs/tags/vX.Y.Z. - GitHub Actions verifies version metadata, runs the checks, publishes the npm package, and then publishes
server.jsonto the MCP Registry in a separate job. Registration retries briefly when the registry cannot yet see the new npm version. - Verify both registries report the new version and smoke-test the published npm package.
If npm publication succeeds but registry registration fails, use Re-run failed jobs to retry only the registry job. For recovery of an older release (including workflows that used a single publish job), open Actions → Release → Run workflow on main and enter the existing tag, such as v1.1.1. This manual action only registers the tagged server.json; it never republishes npm or changes the tag. The recovery workflow must first be merged into main.
Security
See SECURITY.md for vulnerability reporting.
Contributing
See CONTRIBUTING.md for setup, code standards, and PR process.
License
MIT
来源:README.md,提交 0151928
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分