Skip to main content

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


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.0.tar.gz (75.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptloop_mcp-0.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file promptloop_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: promptloop_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 75.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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

Hashes for promptloop_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 be9f4619b883f7ed646924643998e7742c388e772e68d41f74b8355c5a2d8a10
MD5 45f723efb827ae0d5f632ff1d87927f1
BLAKE2b-256 c1b3445ed4bb0e45cfccc0ae9a194b30d2fa1f8b98c5b2d8984fb2759493c1e6

See more details on using hashes here.

File details

Details for the file promptloop_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: promptloop_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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

Hashes for promptloop_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dd4ae02e5bb599d242f246b753a92ebef1f8f9b1046104d4fcf9f530dc0357f
MD5 4b28bf7f2a2370b89f44642d5305697e
BLAKE2b-256 a25934271de158d3a438a0d4fade722cb8c335eb07554b57dcb57d262feed987

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page