Prompt Compass

io.github.rishabhmpc由 GitHub 账号 rishabhmpc 发布v1.0.3更新于 Oct 24, 2026

Decision-only prompt routing and firewall checks for local/cloud routing, PII and jailbreak risk.

已验证Streamable HTTP可网页运行安全与监控AI 与机器学习

概览

AI 生成的概览

Prompt Compass 提供一个仅做决策的提示词检查工具,让助手在转发提示词前先获得路由与风险分类。

可以做什么
检查单条提示词并返回路由或防火墙决策:本地安全、云端复杂、疑似个人数据或越狱内容。只返回决策,不调用模型、不选择供应商、不执行任何操作。
适用场景
当你想在把提示词发往本地或云端模型之前先获得一个分类决策,或想先拦截可能含个人数据或越狱内容的提示词时,可以考虑加入。它只提供决策,不会取代宿主端已有的权限与确认机制。
运行要求
需要 Node.js 20 以上与 Prompt Compass API 密钥(环境变量 PROMPT_COMPASS_API_KEY),或改用远程端点并通过 OAuth 登录 Prompt Compass 账户;不支持 OAuth 的客户端可用 Bearer 令牌。需要网络连接与有效方案。
安装前请注意
需要 Prompt Compass 账户与 API 密钥,请勿将密钥放入版本控制、截图、问题报告或聊天消息。用量与 REST API 共用同一计费额度,可能产生费用。提示词会发送给第三方服务。它只是辅助判断,不是沙箱或安全保证,请保留宿主端权限与确认机制。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Prompt Compass,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.rishabhmpc%2Fprompt-compass/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "prompt-compass": {
      "type": "http",
      "url": "https://api.mpcfintech.com/mcp"
    }
  }
}

README

[Prompt Compass logo]

Prompt Compass MCP

Prompt Compass gives MCP-compatible AI clients one decision-only tool for checking prompts before they are forwarded:

  • LOCAL_SAFE - suitable for the user's configured local-model route.
  • CLOUD_COMPLEX - suitable for the user's configured cloud-model route.
  • BLOCK_PII - contains likely personal or sensitive data.
  • JAILBREAK - contains likely prompt-injection or jailbreak content.

The MCP server does not call an AI model, choose a model provider, or execute actions. The host application remains in control.

Install

Requires Node.js 20 or newer and a Prompt Compass API key.

text
npx -y @mpcfintech/prompt-compass-mcp

Set the key as PROMPT_COMPASS_API_KEY. Keep it out of source control, screenshots, issue reports, and chat messages.

Clients supporting Streamable HTTP can instead connect to:

text
https://api.mpcfintech.com/mcp

Modern clients can discover Prompt Compass OAuth automatically from that URL. Choose Connect or Sign in, log in with your Prompt Compass account, and approve the single read-only prompt-check permission. No API key needs to be pasted into the client. Clients without OAuth support can still use Authorization: Bearer YOUR_PROMPT_COMPASS_API_KEY.

Detailed setup for Codex, ChatGPT desktop, Claude Code/Desktop, Cursor, Cline, Windsurf, Gemini CLI and Google Antigravity is in CLIENT_SETUP.md.

Exposed tool

compass_check_prompt

Input:

json
{ "prompt": "Text to check" }

The result is a routing/firewall decision only. The tool is marked read-only, non-destructive and idempotent.

Plans and keys

Create a Prompt Compass account and API key at:

https://compass.mpcfintech.com

The MCP connection uses the same quota and billing pool as the Prompt Compass REST API. There is no separate MCP surcharge.

Security and limitations

Prompt Compass is a decision aid, not a sandbox or security guarantee. Keep the host client's own permissions, confirmation prompts, provider policies and application-level validation enabled. Do not auto-approve third-party tools.

Agent Compass is not included in this release.

Test

text
npm installnpm test

The public test uses a local in-memory MCP transport and a simulated API response. It does not require a customer key.

Links

Copyright (c) Madanpotra Consultancy Private Limited.

来源:README.md,提交 9f28bc9

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.3最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。