PromptLoop MCP Server
专为 PromptLoop VSCode 插件设计的 MCP 服务器。与原始 mcp-user-confirm 的区别:
- 不打开浏览器:通过 REST API 与插件 Webview 通信
- WebSocket 实时推送:新会话即时通知插件
- 精简架构:只保留核心检查点逻辑
架构
AI 助手 ──(stdio)──> PromptLoop MCP ──(HTTP/WS)──> VSCode 插件 Webview
│ │
dev_checkpoint() 用户确认 UI
│ │
等待确认 <────(POST)──── 提交确认
安装
pip install -e .
配置
在编辑器的 MCP 配置中添加:
{
"mcpServers": {
"promptloop": {
"command": "promptloop-mcp",
"env": {
"PROMPTLOOP_API_PORT": "18765",
"PROMPTLOOP_DEBUG": "false"
}
}
}
}
REST API
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /api/health |
健康检查 |
| GET | /api/sessions/active |
获取当前活跃会话 |
| GET | /api/sessions |
列出历史会话 |
| GET | /api/sessions/{id} |
获取会话详情 |
| POST | /api/sessions/{id}/confirm |
提交用户确认 |
| POST | /api/sessions/{id}/cancel |
取消会话 |
| WS | /ws |
WebSocket 实时推送 |
环境变量
| 变量 | 默认值 | 说明 |
|---|---|---|
PROMPTLOOP_API_PORT |
18765 |
REST API 端口 |
PROMPTLOOP_DEBUG |
false |
调试日志开关 |
项目结构
src/promptloop_mcp/
├── __init__.py # 包入口
├── __main__.py # CLI 入口
├── server.py # MCP 服务器 + dev_checkpoint 工具
├── session.py # 会话管理器
└── api/
├── __init__.py
└── routes.py # REST API 路由(FastAPI)
Metadata
Release files for promptloop-mcp 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| promptloop_mcp-0.2.1.tar.gz | 75.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| promptloop_mcp-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 88.4 kB
Release files / promptloop_mcp-0.2.1.tar.gz
| Download URL | promptloop_mcp-0.2.1.tar.gz |
|---|---|
| Size | 75.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85e8aac79f930e0a813df0a3140a41bda70be1b96f3b3e4443ded8a7e840ea4b
|
|
BLAKE2b-256 checksum How to use checksums |
41d4ada79b75b387d8f9174c06110243348de4b48cca43fb082925518accba38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / promptloop_mcp-0.2.1-py3-none-any.whl
| Download URL | promptloop_mcp-0.2.1-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96ed9a509267220d7b7bb97cd582c904da529a33e30c1e31ab11e0cf4a37385f
|
|
BLAKE2b-256 checksum How to use checksums |
fc2989a41a836d80d854948f4c11d0bd5c951a82ab153a6f5caa3819cdfb7a04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for promptloop-mcp 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.