跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
品牌标识

DeepracticeX 社区

  1. 主页
  2. PromptX
  3. CodeX 如何安装 PromptX

CodeX 如何安装 PromptX

已定时 已固定 已锁定 已移动 PromptX
1 帖子 1 发布者 568 浏览 1 关注中
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • seanS 离线
    seanS 离线
    sean
    写于 最后由 sean 编辑
    #1

    Step1 打开Codex配置文件

    Codex 配置文件位置在 ~/.codex/config.toml
    b3c289f5-3729-4476-a7b6-d199cf4eea8e-image.png

    注意 ~ 是指电脑的操作用户目录,mac 一般在 /Users/xxxx, Windows 在 C:\Users\xxxx

    Step2 向文件写入 mcp 配置

    # 这个是使用 NPM 版本 PromptX
    [mcp_servers.promptx]
    command = "npx"
    args = ["-y", "@promptx/mcp-server"]
    
    # 这个是使用 客户端 版本 PromptX, 通过 HTTP 连接
    # Streamable HTTP requires the experimental rmcp client
    experimental_use_rmcp_client = true
    [mcp_servers.promptx]
    url = "http://127.0.0.1:5203/mcp"
    

    Step3 安装完成检查

    进入 codex ,输入 /mcp

    >_ You are using OpenAI Codex in ~/Deepractice/projects/DeepracticeBrands
    
     To get started, describe a task or try one of these commands:
    
     /init - create an AGENTS.md file with instructions for Codex
     /status - show current session configuration and token usage
     /approvals - choose what Codex can do without approval
     /model - choose what model and reasoning effort to use
    
    /mcp
    
    🔌  MCP Tools
    
      • Server: promptx
        • Command: npx -y mcp-remote http://127.0.0.1:5203/mcp
        • Tools: action, discover, init, learn, recall, remember, toolx
    
    
    ▌ Improve documentation in @filename                                                            
     ⏎ send   ⌃J newline   ⌃T transcript   ⌃C quit          
    

    出现 Tools 代表安装成功

    1 条回复 最后回复
    0
    回复
    • 在新帖中回复
    登录后回复
    • 从旧到新
    • 从新到旧
    • 最多赞同


    • 登录

    • 没有帐号? 注册

    • 第一个帖子
      最后一个帖子
    0
    • 版块
    • 最新
    • 标签
    • 热门
    • 用户
    • 群组