passmcp

com.sebastienrousseau由 sebastienrousseau.com 發布v0.0.8更新於 Oct 24, 2026

Evaluate an MCP server with passmcp and verify its attestations, from inside the agent. Read-only.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

在代理程式內執行 passmcp 診斷:為允許清單內的 MCP 伺服器端點評分,並驗證 passmcp 證明,全程唯讀。

可以做什麼
  • 評估 MCP 伺服器:對允許清單內的 Streamable HTTP 端點執行 passmcp,回傳分數、等級、計數以及最多 25 項失敗檢查與修正連結,可限定於 passmcp 九個階段中的部分階段
  • 驗證證明:離線檢查 passmcp 證明的結構、主體摘要與目標,端點參數為選填
  • 辨識自身:回報 passmcp-server 的版本及其所執行的 passmcp 版本
  • 回傳給代理程式的文字,以及符合各工具輸出結構定義的結構化內容
適用情境
適合讓代理程式在信任某個 MCP 伺服器之前先測試或把關,或在不離開編輯器、不貼上終端機輸出的情況下驗證證明。適用於本機或允許清單內的 HTTP 端點;若是 stdio 伺服器、需要憑證的伺服器、CI 把關或簽章驗證,README 會指向其他工具。
執行需求
由支援 2025-03-26 或更新版本的 MCP 主機啟動的本機 stdio 程序。passmcp 程式須已安裝並在 PATH 中,或以 --passmcp 指定;容器映像已內含。從原始碼建置需要 Go。目標須為允許清單內的 Streamable HTTP 端點:預設僅限回送位址,其他主機須透過 --allow 或 PASSMCP_SERVER_ALLOW 指定。
安裝前請注意
passmcp 會對代理程式傳入的端點發出真實請求,因此允許清單(--allow / PASSMCP_SERVER_ALLOW)是主要控制手段,開頭的點號會放行子網域。每次執行固定為 --auth none 並使用空白設定檔,因此不會送出憑證,只反映未驗證用戶端所見。工具皆為唯讀,且不傳遞任何允許變更操作的旗標。證明驗證只檢查結構與完整性,不檢查簽章。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 passmcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[passmcp-server logo]

passmcp-server

passmcp, the Model Context Protocol server diagnostic, as MCP tools — so an agent can evaluate a server, or check an attestation about one, from inside the editor. Read-only, allowlisted, and it never sends a credential.

[Build] [Coverage] [Release] [Docs] [OpenSSF Scorecard] [License: GPL-3.0-only] [Go 1.26.9+]

[passmcp call invoking passmcp-server's passmcp_version and passmcp_check tools over stdio; passmcp_check scores passmcp's example toxic-pair server on loopback 97 out of 100]


Contents

Getting started

  • Install — release archives, go install, make install, the container image, and an MCP host configuration
  • Requirements — passmcp itself, and the Go floor to build from source
  • Quick Start — ask the agent to evaluate a local server

The passmcp-server ecosystem

  • The passmcp-server ecosystem — passmcp, passmcp-reporting, passmcp-server, passmcp-action, passmcp-graph, passmcp-registry, passmcp-lsp, passmcp-census, satellion.com

Library reference

Operational


Install

passmcp_check runs the passmcp program. passmcp must be installed and on PATH, or named with --passmcp, for that tool to work; the container image carries it. passmcp_verify_attestation needs nothing but passmcp-server.

As a Go program

sh
go install satellion.com/passmcp-server/cmd/[email protected]go install satellion.com/passmcp/cmd/[email protected]

Release binaries for Linux, macOS and Windows on amd64 and arm64 are on the releases page, with signed checksums and SLSA provenance.

From source, with make install

sh
git clone https://github.com/sebastienrousseau/passmcp-servercd passmcp-servermake install PREFIX="$HOME/.local"

make install builds the binary and its bash, zsh and fish completions and installs them under PREFIX (default /usr/local), staged under DESTDIR when a packager sets it. make uninstall removes them. The GNUmakefile holds the contract, and CI checks the staged tree on every push.

As a container image

sh
docker pull ghcr.io/sebastienrousseau/passmcp-server:0.0.8

The image is passmcp's own release image with passmcp-server added: distroless, non-root, linux/amd64 and linux/arm64, with passmcp at /usr/local/bin/passmcp and passmcp-server started with --passmcp pointing at it.

In an MCP host

passmcp-server speaks MCP over stdio, so a host starts it as a child process. For Claude Desktop (claude_desktop_config.json), Claude Code (.mcp.json) and other hosts that read an mcpServers block:

json
{  "mcpServers": {    "passmcp": {      "command": "passmcp-server",      "args": ["--allow", ".internal.example.com"]    }  }}

With the container image instead:

json
{  "mcpServers": {    "passmcp": {      "command": "docker",      "args": ["run", "-i", "--rm", "ghcr.io/sebastienrousseau/passmcp-server:0.0.8"]    }  }}

Inside a container, loopback is the container itself. To evaluate a server on the host, run the container with --network host on Linux, or point at host.docker.internal and add -e PASSMCP_SERVER_ALLOW=host.docker.internal to the arguments.

The server is listed in the official MCP Registry as com.sebastienrousseau/passmcp-server; server.json is that listing.


Requirements

RequirementFloorEnforced by
passmcpon PATH, or --passmcp; the version this one is in lockstep withCI builds passmcp at that tag and evaluates this server with it
Go (building from source)the go directive in go.modCI tests on that version and on latest stable, on Linux, macOS and Windows
An MCP hostany that starts stdio servers and speaks revision 2025-03-26 or laterthe handshake negotiates 2025-11-25, 2025-06-18 or 2025-03-26, and 2026-07-28 through server/discover
The server under testa Streamable HTTP endpoint on the allowlistpassmcp_check refuses any other URL before passmcp runs

The Go floor is raised only when a release needs a language feature, on a patch release like everything else pre-1.0, and the changelog says so.


Quick Start

sh
go install satellion.com/passmcp-server/cmd/[email protected]go install satellion.com/passmcp/cmd/[email protected]claude mcp add passmcp -- passmcp-server

Then, with an MCP server of your own listening on http://127.0.0.1:3000/mcp, ask the agent:

Evaluate my MCP server at http://127.0.0.1:3000/mcp with passmcp and fix what fails.

The agent calls passmcp_check, which runs passmcp check http://127.0.0.1:3000/mcp --auth none --output json and returns the score, the grade and every failing check with its detail and a link to the fix. Loopback needs no configuration; any other host must be named with --allow first.


The passmcp-server ecosystem

Every component is released at 0.0.8 and moves in lockstep: one version across the family, released together (docs/ecosystem.md).

ComponentPurposeUse case
passmcpThe MCP server diagnostic: checks in nine phases, every finding tied to the request that showed it, signed attestationsTest a server before your agents trust it, and gate it in CI
passmcp-reportingThe attestation format, its JSON Schemas and offline verifier, the graph model, and the agentgateway processorVerify an attestation in a gateway, registry or pipeline
passmcp-serverpassmcp's diagnostics as read-only MCP toolsEvaluate a server, or check an attestation, from inside the agent
passmcp-actionpassmcp in GitHub Actions and GitLab CI, the image pinned by digestFail a build on the findings you choose
passmcp-graphA local graph of agents, servers, tools and identities built from attestationsFind inherited risk and over-privilege, and gate on policy
passmcp-registryA signed public scorecard of the MCP Registry's remote serversCheck a public server's standing before connecting to it
passmcp-lspA language server for MCP artefacts, with check-id hover from the guidance catalogueCatch mistakes in server.json, tool schemas and client configuration while editing
passmcp-censusThe published reliability census: dataset, methodology, disclosure log and reproduction commandCite ecosystem-wide reliability figures, and reproduce them
satellion.comThe website, the Go module paths and the format URIsRead the manual, and resolve satellion.com/... imports

This repository is the distribution surface: its deliverable is a registry listing, so passmcp is where agents look for tools. It wraps passmcp's release, so its version is passmcp's latest, exactly; make lockstep checks that, make family checks this repository's row in the family manifest, and make versions checks that every file naming the version, and the passmcp-reporting module in go.mod, agree on it.


Capabilities at a glance

AreaCapabilityStatus
Evaluatepassmcp_check: score, grade, counts and up to 25 failing checks for an allowlisted Streamable HTTP endpoint, optionally narrowed to some of passmcp's nine phasesReleased in 0.0.1
Verifypassmcp_verify_attestation: structure, subject digest and target of a passmcp attestation, offlineReleased in 0.0.1
Identifypassmcp_version: passmcp-server's version and the passmcp it runsReleased in 0.0.1
ResultsText for the agent, plus structuredContent matching each tool's outputSchemaReleased in 0.0.1
Protocolstdio; handshake 2025-11-25, 2025-06-18, 2025-03-26; server/discover for 2026-07-28; pingReleased in 0.0.1
Servers that are programs (--stdio)not through a tool; run passmcp check --stdio yourselfOut of scope
Credentialsnever sent; every run is --auth noneOut of scope by design

Ecosystem comparison

The alternative is running passmcp in a terminal and pasting the report into the conversation, or poking the server by hand in an inspector. passmcp-server makes the decisions an agent should not: which hosts it may reach, that no credential travels, and a result sized for a context window.

ApproachAn agent can call itTargets limited by the operatorScored, with remediation links
passmcp-serveryesyes — loopback unless --allowyes
passmcp check in a terminalnothe operator types the URLyes
MCP Inspectorno — a UI for a personthe operator types the URLno

See docs/COMPARISON.md for the evidence and complete matrix.


Benchmarks

The server adds a process start and a JSON round trip to a run; the run itself is passmcp's, and bounded at five minutes. Measured with hyperfine on binaries built from this tree and passmcp 0.0.1, on a machine that was running other builds at the time, so the spread is wide and the minimum is the better guide.

ScenarioResultEnvironment
Start, initialize, tools/list, passmcp_version, exit27.2 ms ± 22.2 ms mean, 6.2 ms min (50 runs)Apple A18 Pro, Go 1.27.1, 2026-09-29, load average 19
passmcp's full stdio evaluation of passmcp-server242.3 ms ± 80.5 ms mean, 148.5 ms min (30 runs)same
passmcp_check against a serverpassmcp's own timings, in its reportthe target server

See docs/BENCHMARKS.md for methodology and full results.


Features

An allowlist, on by default and narrow. With no configuration, passmcp_check evaluates loopback addresses only: localhost, any *.localhost name, and loopback IPs. --allow names more hosts, exactly or as .example.com for every subdomain (not the apex). passmcp makes real requests to the endpoint it is given, and an agent choosing that endpoint from a prompt is exactly the situation in which a request should not go anywhere the operator did not name. A URL that is not http or https, or that carries credentials in it, is refused before passmcp runs.

No credentials. Every run is passmcp check <endpoint> --auth none, with PASSMCP_CONFIG pointing at an empty configuration file, so no profile or defaults block the operator wrote for their own use can add a credential, switch on mutations or redirect the report. The operator's secrets do not travel to wherever an agent points passmcp.

Read-only, twice. Every tool here is annotated readOnlyHint: true. And no flag that allows a mutating tool is ever passed to passmcp, so passmcp invokes only the evaluated server's tools that declare readOnlyHint.

passmcp, not a copy of it. passmcp-server runs the passmcp program and reads the JSON report it prints; it does not link passmcp's engine. The version passmcp_version reports is whatever passmcp version says, and every safety property passmcp has holds, because the server can only ask for what passmcp's own flags allow.

Answers an agent can act on. A failing check comes with its id, severity, detail and a documentation link. A statement that does not verify is a result saying why, not a tool error. A server that fails everything returns the first 25 failures and says it truncated.


Configuration

FlagEnvironmentDefaultMeaning
--allowPASSMCP_SERVER_ALLOWempty: loopback onlyHosts passmcp_check may evaluate besides loopback, comma-separated; a leading dot allows subdomains
--passmcpPASSMCP_SERVER_PASSMCPpassmcp on PATHPath of the passmcp program
--version——Print the version and exit
--completion——Print a completion script for bash, zsh or fish, and exit

A flag overrides its environment variable. Nothing else is read: passmcp itself runs with an empty configuration file, whatever the operator's own passmcp configuration says.

Shell completions come from the flag set, so they list every flag:

sh
passmcp-server --completion bash > /etc/bash_completion.d/passmcp-serverpassmcp-server --completion zsh > "${fpath[1]}/_passmcp-server"passmcp-server --completion fish > ~/.config/fish/completions/passmcp-server.fish

Examples

A tools/call for passmcp_check:

json
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"passmcp_check","arguments":{"endpoint":"http://127.0.0.1:3000/mcp","phases":["handshake","catalog"]}}}

arguments for the other two:

json
{"statement": "<the attestation's JSON text>", "endpoint": "https://mcp.example.com/mcp"}
json
{}

The first is passmcp_verify_attestation, with endpoint optional; the second is passmcp_version, which takes no arguments. An unknown argument is refused rather than ignored, so a misspelling is reported.

To see the handshake and the tool list without a host:

sh
make smoke

When not to use passmcp-server

  • For a server that is a program. passmcp_check takes a Streamable HTTP URL. An agent starting arbitrary programs is a different trust decision; run passmcp check --stdio -- <command> yourself.
  • For a server that needs credentials. Every run is --auth none, so the evaluation is what an unauthenticated client sees. Run passmcp in a terminal with the credentials you were given for the rest.
  • As a CI gate. Use passmcp-action, which keeps the report and fails the job.
  • To check who signed an attestation. passmcp_verify_attestation checks structure and integrity; the signature is the envelope's, and cosign or gh attestation verify checks it.
  • For many evaluations at once. Requests are answered in turn; a host that wants two at once starts two servers.

Development

bash
make            # format, vet, lint, headers, tests, stdio smoke testmake test-race  # race detector, randomised ordermake image      # the container image for this machine, without goreleasermake family     # this repository's row in passmcp's family manifestmake lockstep   # the version is passmcp's latest releasemake versions   # every version-bearing file, and go.mod, name that releasemake coverage-json  # build/coverage.json, the document behind the badgemake install-smoke  # install and uninstall under a staged DESTDIR

Every gate CI runs has a local form; DEVELOPMENT.md maps them. CI also builds passmcp at the lockstep version and has it evaluate this server over stdio, failing below 90 or on any failing check but supply.provenance.


Security

The endpoint an agent passes is checked against the allowlist before passmcp runs, and a refused endpoint never reaches passmcp. passmcp runs with --auth none and an empty configuration file, and with no flag that allows a mutating tool; each of those is a test in internal/runner and internal/server. What reaches the agent is bounded: at most 25 failures per result, and passmcp's error output cut to its last 400 characters. CI runs govulncheck on every push, and releases are signed with cosign keyless and carry SLSA build provenance.

Report vulnerabilities according to SECURITY.md.


Documentation

The four entry points, identical across every repo in the family:

  • User Manual — passmcp's rendered manual: the phases, the checks, the report
  • API reference — this module's packages
  • Developer docs — toolchain, task map, reproducing every CI gate locally
  • Ecosystem map — the family, the published artefacts, the lockstep version rule
DocumentCovers
docs/ARCHITECTURE.mdHow a call flows, the packages, and the settings every run is fixed to
docs/adr/Decision records for this repository
docs/COMPARISON.mdpassmcp-server beside the other ways to run passmcp
docs/BENCHMARKS.mdWhat the server adds to a run, and how it was measured
docs/publishing.mdPublishing the registry listing
docs/releases/Release highlights, one file per release
server.jsonThe MCP Registry listing
SECURITY.mdDisclosure policy, supported versions, what is guaranteed
CONTRIBUTING.mdSigned-commit and DCO policy, what a change needs
CHANGELOG.mdPer-release notes, and the lockstep version rule
SUPPORT.mdWhere to ask, and what to expect

Stability guarantees

passmcp-server is pre-1.0, carries passmcp's version, and follows SemVer with the patch digit moving for everything until 1.0.

The breaking axis is what an agent or a host relies on. These are breaking:

  • Removing or renaming a tool, an argument or a structured result field
  • Making an optional argument required
  • Widening the default allowlist, sending a credential, or passing passmcp a flag that allows a mutating tool
  • Changing a flag's or an environment variable's meaning

Added tools, optional arguments and result fields, and a new passmcp release underneath are not breaking. What a run reports is passmcp's, and passmcp's own stability rule governs it.

Deprecation window. A deprecated tool or argument keeps working for at least one release after the release that announces it.


License

Licensed under the GNU General Public License v3.0 only.

passmcp-server is GPL-3.0-only like passmcp, the program it runs. It uses the Apache-2.0 passmcp-reporting verifier for attestations.

Back to Top

來源:README.md,提交 0263c61

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

3
  1. v0.0.8最新Oct 18, 2026
  2. v0.0.3Sep 30, 2026
  3. v0.0.2Sep 30, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分