Skip to content

Optional inputs appear with an asterisk * in the MCP inspector #118

@PaulRBerg

Description

@PaulRBerg

When I run an MCP server built with mcp-framework, many inputs appear with an asterisk * in the MCP inspector even if they are declared as optional

npx @modelcontextprotocol/inspector node dist/index.js

e.g. limit is optional but it has an asterisk in the screenshot:

schema = {
  limit: {
    description: "Maximum number of results to return (default: no limit)",
    type: z.number().optional(),
  },
  query: {
    description: "Search query to find relevant issues and discussions",
    type: z.string(),
  },
};
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions