Skip to content

Error: MCP client for <mcp name> failed to start: MCP startup failed: missing field type #7416

@linuxmetel

Description

@linuxmetel

What version of Codex is running?

codex-cli 0.64.0-alpha.9

What subscription do you have?

unrelated

Which model were you using?

unrelated

What platform is your computer?

Linux 6.17.9-arch1-1 x86_64 unknown

What issue are you seeing?

In the start up of codex-cli, I have errors like:

⚠ error: MCP client for `<mcp name>` failed to start: MCP startup failed: missing field `type`

Cause

Because some of the the corresponding Rust SDK types do not have a field type, convert_to_mcp() in codex-rs/rmcp-client/src/utils.rs may return an error.

What steps can reproduce the bug?

In my machine, with the following config:

[mcp_servers.<mcp name>]
command = "mcp-server-filesystem"
args = ["<directory>"]

just running $ codex produce the error

error: MCP client for `<mcp name>` failed to start: MCP startup failed: missing field `type`

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions