
Presence Mcp
io.github.sara-star-quant由 GitHub 账号 sara-star-quant 发布v0.2.0更新于 Oct 24, 2026
Read-only MCP access to presence: living project model and outcome telemetry.
概览
以只读方式通过 MCP 访问本地 presence 安装中每个仓库的实时项目模型与结果遥测数据。
- 可以做什么
- 这个 PyPI 启动器会定位本地 presence 安装,并把 stdio 转发给它的 MCP 服务器。它为每个仓库暴露两个只读资源:Markdown 格式的实时 model.md,以及近期提交、回滚和验证声明组成的 JSON 数组。启动器本身不实现 MCP 协议,只有约 40 行仅用标准库的 Python 代码。
- 适用场景
- 当你已经运行 presence 这个 Claude Code 插件,并希望从 Claude Desktop、Cursor、Continue 或其他支持 MCP 的客户端,用单一命令名而不是每台机器都不同的绝对路径访问其项目模型和遥测数据时使用。
- 运行要求
- 需要 Python 3.12 或更高版本,以及本地 presence 安装(已测试 0.6.0 及更高版本)。启动器从默认插件路径或 PRESENCE_MCP_CLI 环境变量定位 presence,并可通过 PRESENCE_MCP_PYTHON 使用其他解释器。CI 覆盖 Linux 和 macOS;Windows 未测试。
安装
在 SourceWeft 中
- 打开 控制台中的 Presence Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
presence-mcp
[PyPI] [Python versions] [License: Apache 2.0] [CI] [MCP Registry]
PyPI launcher that exposes presence's living project model and outcome telemetry as MCP resources for Claude Desktop, Cursor, Continue, and other MCP-aware clients.
presence is a Claude Code plugin. It already ships a stdio MCP server at lib/cli.py mcp and exposes two read-only resources per repository (see What you get). This package is the PyPI shim that lets that server be listed in the official MCP Registry and invoked with a single command name in every per-client config, instead of an absolute path that varies per machine.
The launcher itself speaks no MCP. It locates a local presence install and forwards stdio to python lib/cli.py mcp. About 40 lines of Python, stdlib only.
Quick start
Then point any MCP client at the presence-mcp command. For Claude Desktop, that's:
Full per-client config for Cursor and Continue below. Requires Python 3.12+ and a local presence install.
What you get
Two read-only MCP resources, one per repository you've worked on:
<repo_id> is a 12-char SHA-256 prefix of the repo. The server resolves the current repo from the launcher's working directory; see Working-directory caveat. Resource schema and protocol details: presence's docs/mcp.md.
Per-client configuration
The same presence-mcp command works in every client.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS), or the equivalent on Windows / Linux:
Cursor
.cursor/mcp.json in the project root, or the global Cursor MCP settings:
Continue
~/.continue/config.json:
Verify the install
The launcher accepts JSON-RPC on stdin. Pasting {"jsonrpc":"2.0","id":1,"method":"initialize"} and pressing Enter should yield an initialize response. You can also invoke it as python -m presence_mcp if a console script isn't convenient.
Environment variables
If presence-mcp reports it could not locate presence, install presence at the standard Claude Code plugin path, or set PRESENCE_MCP_CLI.
Working-directory caveat
presence's MCP server resolves the current repo from the launcher's working directory via git rev-parse --show-toplevel. MCP clients that launch the server from a fixed directory will only see one repo. To switch repos, either launch a separate instance per project (set cwd in the client's per-server config), or restart the server from the target project root.
Compatibility
- Python: 3.12 or newer. CI matrix covers 3.12 / 3.13 / 3.14.
- presence: tested with
>= 0.6.0. Older versions back to v0.4.1 (where the MCP server first shipped) may still work but are not exercised by CI. - Platforms: Linux and macOS exercised in CI. Windows is untested in v0.1.0. The launcher uses
subprocess.runwhich is cross-platform, but the default presence install path (~/.claude/plugins/presence/lib/cli.py) needs a real Windows install to confirm. Report issues if you try it.
This launcher is protocol-agnostic: it does not rev when presence ships new MCP resources. It only revs when its own resolution logic, CLI surface, or server.json content changes.
Where to file issues
- Launcher bugs (path detection, install errors, CLI argument forwarding): issues on this repo.
- Resource-content bugs (what
presence://*/modelreturns, telemetry schema, working-directory behavior, anything about the protocol itself): issues on the presence repo.
Disambiguation
presence's MCP server advertises serverInfo.name = "presence-mcp" in its initialize response. That's the server's MCP identity. This package is the PyPI launcher. The names match by intent.
Links
- PyPI: https://pypi.org/project/presence-mcp/
- MCP Registry: https://registry.modelcontextprotocol.io/v0/servers?search=presence-mcp (
io.github.sara-star-quant/presence-mcp) - Upstream (presence): https://github.com/sara-star-quant/presence
License
来源:README.md,提交 c6854d8
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分

