PromptLoop MCP Server - AI multi-turn conversation checkpoint for IDE extensions
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
promptloop_mcp-0.2.1.tar.gz
(75.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file promptloop_mcp-0.2.1.tar.gz.
File metadata
- Download URL: promptloop_mcp-0.2.1.tar.gz
- Upload date:
- Size: 75.7 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85e8aac79f930e0a813df0a3140a41bda70be1b96f3b3e4443ded8a7e840ea4b
|
|
| MD5 |
0fe2b0ed376e98f9a27d335bbc1e1fd4
|
|
| BLAKE2b-256 |
41d4ada79b75b387d8f9174c06110243348de4b48cca43fb082925518accba38
|
File details
Details for the file promptloop_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: promptloop_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96ed9a509267220d7b7bb97cd582c904da529a33e30c1e31ab11e0cf4a37385f
|
|
| MD5 |
a0e6a7e7fa330c5d55674e2f4d531003
|
|
| BLAKE2b-256 |
fc2989a41a836d80d854948f4c11d0bd5c951a82ab153a6f5caa3819cdfb7a04
|