Skip to content

MCP Servers defined in custom agents do not work in CLI #388

@ppAndersonVieira

Description

@ppAndersonVieira

Summary
MCP (Model Context Protocol) servers configured within custom agents are not functioning when running the agent through the CLI.
Expected Behavior
When a custom agent is defined with an MCP server configuration, the CLI should properly initialize and connect to the specified MCP server, making the MCP tools available during agent execution.
Actual Behavior
The MCP server defined in the custom agent configuration is not being started or connected to when running the agent via CLI. The agent runs without access to the MCP tools that should be provided by the configured server.
Steps to Reproduce

  1. Create a custom agent with an MCP server configuration in the .agents/ directory
  2. Define the MCP server with the appropriate settings (command, args, etc.)
  3. Run the custom agent through the CLI

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