Skip to content

tool sf-deploy-metadata does not provides details #91

@Damecek

Description

@Damecek

Hi, when agent runs the sf-deploy-metadata tool, and the deployment fails, it does not provide detailed information about the issue, just how many conflicts occured.

**Tool Results: sf-deploy-metadata-86**

Failed to deploy metadata: 6 conflicts detected

The output of sf project deploy start should be routed to the tool result such that the agent can react. For example, I want the agent to deploy the project, which I know have some issues related to missing metadata, those can be easily resolved by deploying the missing metadata, but for this to work the agent needs to know what metadata is missing.

Whole agent thread:

xx Dev Deployment and MCP Recovery

User

deploy this salesforce project to xx-dev. if deployment fails, deploy indidividual files in order to fix the deployment, use mcp server where possible

Agent

Use Tool: sf-get-username (sf-get-username-85)

{
  "directory": "/Users/adam/IdeaProjects/salesforce",
  "defaultTargetOrg": false
}

Tool Results: sf-get-username-85

YOU MUST inform the user that we are going to use "[email protected]" (Alias: xx-dev) for the "usernameOrAlias" parameter.
YOU MUST explain the reasoning for selecting this org, which is: "it is the default (Local) target org"
UNLESS THE USER SPECIFIES OTHERWISE, use this username for the "usernameOrAlias" parameter in future Tool calls.

Agent

I will deploy your Salesforce project to the xx-dev org using [email protected].

Use Tool: sf-deploy-metadata (sf-deploy-metadata-86)

{
  "usernameOrAlias": "xx-dev",
  "apexTestLevel": "NoTestRun",
  "directory": "/Users/adam/IdeaProjects/salesforce"
}

Tool Results: sf-deploy-metadata-86

Failed to deploy metadata: 6 conflicts detected

Agent

The deployment to xx-dev failed with 6 conflicts. Unfortunately, the sf-deploy-metadata tool doesn't provide specific details about which files caused the conflicts directly in its output.

To address this, I will try to find all Salesforce metadata files in your project and then attempt to deploy them individually. I will start by finding all files within the /Users/adam/IdeaProjects/salesforce directory.

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