内容发布MCP服务器

一个非官方的Post Bridge MCP服务器(FastMCP),提供本地MCP服务器与Post Bridge API通信,以便从MCP兼容客户端安排/发布内容。

  • by xSAVIKx
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 xSAVIKx/post-bridge-mcp

使用说明

后桥mcp

非官方的后桥MCP服务器(FastMCP)。提供与邮局通信的本地MCP服务器 桥接API,以便您可以从兼容MCP的客户端调度/发布内容。

安装

我们在发布页面上提供特定于操作系统的预构建二进制文件。选择最新版本,下载 为您的操作系统设置二进制文件,设置所需的环境变量,然后运行它。

发布:https://github.com/xSAVIKx/post-bridge-mcp/releases

关于文件名的注意事项(来自我们的CI配置):

  • macOS: post-bridge-mcp-macos-<version>
  • Linux(Ubuntu): post-bridge-mcp-ubuntu-<version>
  • 窗户: post-bridge-mcp-windows-<version>

Gemini CLI扩展

gemini extensions install https://github.com/xSAVIKx/post-bridge-mcp

macOS(zsh)

# 1) Download the latest macOS binary (replace 0.1.6 with the latest version)
VERSION=0.1.6
curl -L -o post-bridge-mcp "https://github.com/xSAVIKx/post-bridge-mcp/releases/download/v$VERSION/post-bridge-mcp-macos-$VERSION"
chmod +x post-bridge-mcp

# 2) Required environment variables
export POST_BRIDGE_API_TOKEN="<your_api_token>"
# Optional (defaults to https://api.post-bridge.com)
# export POST_BRIDGE_API_BASE_URL="https://api.post-bridge.com"

# 3) Run
./post-bridge-mcp

Linux(bash)

# 1) Download the latest Linux binary (replace 0.1.6 with the latest version)
VERSION=0.1.6
curl -L -o post-bridge-mcp "https://github.com/xSAVIKx/post-bridge-mcp/releases/download/v$VERSION/post-bridge-mcp-ubuntu-$VERSION"
chmod +x post-bridge-mcp

# 2) Required environment variables
export POST_BRIDGE_API_TOKEN="<your_api_token>"
# Optional (defaults to https://api.post-bridge.com)
# export POST_BRIDGE_API_BASE_URL="https://api.post-bridge.com"

# 3) Run
./post-bridge-mcp

Windows(PowerShell)

# 1) Download the latest Windows binary (replace 0.1.6 with the latest version)
$version = "0.1.6"
$asset   = "post-bridge-mcp-windows-$version.exe"
$uri     = "https://github.com/xSAVIKx/post-bridge-mcp/releases/download/v$version/$asset"
Invoke-WebRequest -Uri $uri -OutFile "post-bridge-mcp.exe"

# 2) Required environment variables (for current session)
$env:POST_BRIDGE_API_TOKEN = "<your_api_token>"
# Optional (defaults to https://api.post-bridge.com)
# $env:POST_BRIDGE_API_BASE_URL = "https://api.post-bridge.com"

# 3) Run
./post-bridge-mcp.exe

使用Bun/Node(来自npm注册表)

如果您不想使用预构建的二进制文件,可以安装该包并使用Bun或 节点。

# Install
bun add post-bridge-mcp

# Set env vars (bash/zsh example)
export POST_BRIDGE_API_TOKEN="<your_api_token>"
# export POST_BRIDGE_API_BASE_URL="https://api.post-bridge.com" # optional

# Run with Bun directly from the installed package
bun node_modules/post-bridge-mcp/dist/cli.js

# Or run with Node
node node_modules/post-bridge-mcp/dist/cli.js

笔记:

  • 您还可以在此仓库中从源代码运行CLI进行开发: bun src/cli.ts.
  • MCP服务器立即启动,并根据您的MCP客户端配置进行监听。

环境变量

启动服务器时,这些必须在进程环境中可用:

  • POST_BRIDGE_API_TOKEN (必需):您的后桥API令牌。如果丢失,服务器将退出 有一个错误。
  • POST_BRIDGE_API_BASE_URL (可选):后桥API的基本URL。默认为 https://api.post-bridge.com.

贡献

请看 贡献.md 关于贡献指南。

许可证

麻省理工学院