Skip to main content
Glama
al-one

MCP Server for notify to weixin / telegram / bark / lark

pushplus_send_msg

Send notifications via PushPlus to multiple platforms including WeChat, Telegram, Bark, and Lark. Configure message content, title, format, and delivery channel for cross-platform alerts.

Instructions

通过PushPlus(推送加)推送消息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes消息内容
titleNo消息标题
tokenNo用户token,默认从环境变量获取
templateNo消息内容格式: `html`(默认)/`txt`/`markdown`
channelNo发送渠道: `wechat`(默认)/`webhook`/`mail`

Implementation Reference

  • The handler function that executes the 'pushplus_send_msg' tool logic, sending a POST request to PushPlus API with configurable parameters.
    def pushplus_send_msg( content: str = Field(description="消息内容"), title: str = Field("", description="消息标题"), token: str = Field("", description="用户token,默认从环境变量获取"), template: str = Field("", description="消息内容格式: `html`(默认)/`txt`/`markdown`"), channel: str = Field("", description="发送渠道: `wechat`(默认)/`webhook`/`mail`"), ): """ https://www.pushplus.plus/doc/guide/api.html """ if not token: token = os.getenv("PUSH_PLUS_TOKEN", "") base = os.getenv("PUSH_PLUS_BASE_URL") or "http://www.pushplus.plus" res = requests.post( f"{base}/{token}", json={ "content": content, "title": title, "template": template, "channel": channel, }, ) return res.json()
  • Pydantic Field-based input schema defining parameters for the 'pushplus_send_msg' tool.
    content: str = Field(description="消息内容"), title: str = Field("", description="消息标题"), token: str = Field("", description="用户token,默认从环境变量获取"), template: str = Field("", description="消息内容格式: `html`(默认)/`txt`/`markdown`"), channel: str = Field("", description="发送渠道: `wechat`(默认)/`webhook`/`mail`"), ):
  • Registers the 'pushplus_send_msg' tool using FastMCP's @mcp.tool decorator with title and description.
    @mcp.tool( title="PushPlus推送消息", description="通过PushPlus(推送加)推送消息", )
  • Calls add_tools on the 'other' module to register all its tools, including 'pushplus_send_msg', to the main MCP instance.
    other.add_tools(mcp)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/al-one/mcp-notify'

If you have feedback or need assistance with the MCP directory API, please join our Discord server