codex-notify-mcp
Codex任务完成后发送企业微信通知的MCP服务器。提供notify_wecom工具,支持自定义标题、状态、任务摘要等参数。
README
codex-notify-mcp
Codex 任务完成后发送企业微信通知。这个项目提供两种入口:
- MCP 工具:给 Codex 暴露
notify_wecom,让 Codex 在任务完成前主动发通知。 - CLI 命令:可以被 hook、脚本或手动命令调用,直接向企业微信 webhook 发消息。
效果截图

配置
不要把企业微信 webhook 写进源码。推荐放进本地 .env:
WECOM_WEBHOOK_URL=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY_HERE
CODEX_NOTIFY_DEFAULT_TITLE=Codex 任务完成
CODEX_NOTIFY_REPO=codex-notify-mcp
.env 已加入 .gitignore。如果不想用 .env,也可以直接设置环境变量:
$env:WECOM_WEBHOOK_URL="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY_HERE"
作为 MCP 接入 Codex
在本仓库目录执行:
codex mcp add wecom-notify --env CODEX_NOTIFY_ENV_FILE="E:\code\github\codex-notify-mcp\.env" -- node E:\code\github\codex-notify-mcp\src\server.mjs
之后在 Codex 的长期指令或仓库 AGENTS.md 中加入类似规则:
每次任务完成并准备回复用户前,调用 wecom-notify MCP 的 notify_wecom 工具发送企业微信通知。
通知内容包含任务状态、简短摘要、仓库名和当前路径。
手动发送测试
node src\cli.mjs --title "Codex 任务完成" --status done --task "通知测试" --summary "企业微信 webhook 已可用"
可用环境变量
WECOM_WEBHOOK_URL:必填,企业微信机器人 webhook 地址。CODEX_NOTIFY_ENV_FILE:可选,指定.env文件路径。CODEX_NOTIFY_DEFAULT_TITLE:可选,默认通知标题。CODEX_NOTIFY_REPO:可选,默认仓库名。CODEX_NOTIFY_CWD:可选,默认工作目录。
MCP 工具参数
工具名:notify_wecom
参数:
title:通知标题。status:任务状态,例如done、failed、needs attention。task:任务名。summary:任务摘要。repo:仓库名。cwd:当前路径。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.