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.1.0.tar.gz (74.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.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: promptloop_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 74.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.1.0.tar.gz
Algorithm Hash digest
SHA256 5dde730329f50b7e26526b0319ec34a812c6c7f39f1a943fc6ad527e73dec8b5
MD5 0554cce45dd411f8baa3fea2e8e2d64e
BLAKE2b-256 780c5788165ec310ad9f48e42ab6cd7a04522b1420c2032ddbd7ecffa03918e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: promptloop_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78f9a0f4b9b53be6d6c8bed261d65636da8065317cdced51b682894098c7074c
MD5 5e40c6342f4f04c803cde376096df099
BLAKE2b-256 0b174c2e39053da823adf7973c1f652b854ff95c2d44c95fe9feb973aeb11d02

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