Skip to content

使用MCP更新项目始终失败 #14

@nicklaus-lei

Description

@nicklaus-lei

重现步骤:

  1. 在Edgeone-Pages上创建并导入项目
  2. 克隆项目到本地
  3. 配置MCP
    根据官方文档配置成功
    {
      "mcpServers": {
        "edgeone-pages-mcp-server": {
          "command": "npx",
          "args": ["edgeone-pages-mcp"],
          "env": {
            // Optional. If deploying a folder or ZIP package, the API Token is required.
            "EDGEONE_PAGES_API_TOKEN": "xxx",
            // Optional, leaving it empty will create a new Pages Project, filling in an existing project name will update the project
            "EDGEONE_PAGES_PROJECT_NAME": "my-demo"
          }
        }
      }
    }
  4. 在Trae中@Builder with MCP输入需求(如:更新按钮的颜色并发布项目)
    报错信息:
    edgeone-pages-mcp-server/deploy_folder_or_zip
    Arguments
    {
      "localPath": "/path/to/my-demo"
    }
    Response
    Error: Deployment Process Log:
    ==================================================
    LOG: Using BASE_API_URL2 endpoint
    LOG: [uploadToEdgeOneCOS] Uploading 32 files to COS with targetPath: 1367692498/my-demo/1751958902622...
    LOG: [uploadToEdgeOneCOS] Upload successful.
    LOG: [getOrCreateProject] Getting or creating project...
    LOG: [getOrCreateProject] Project my-demo already exists. Using existing project.
    LOG: [getOrCreateProject] Using Project ID: pages-hwbdhprbgwcr
    LOG: [createPagesDeployment] Creating deployment in Production environment...
    ==================================================
    
    Deployment failed: [createPagesDeployment] Deployment creation failed: Deployment creation failed, please try again later.
    
    部署到EdgeOne Pages失败了,我们可以尝试使用另一种方式部署,直接部署HTML内容。

请问可能是哪里配置有问题,导致无法实现“filling in an existing project name will update the project”

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions