Skip to content

Conversation

johnmcollier
Copy link
Member

Hey, I just made a Pull Request!

Some MCP clients have issues with how the backstage MCP server converts the zod objects to json schemas. As a temporary workaround, this PR just removes them altogether and switches to single string objects containing comma separated items.

Longer term, looking at the upstream plugin to see why this is happening would be preferred.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

Signed-off-by: John Collier <[email protected]>
Signed-off-by: John Collier <[email protected]>
@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Oct 10, 2025

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-software-catalog-mcp-tool workspaces/mcp-integrations/plugins/software-catalog-mcp-tool patch v0.2.3
@red-hat-developer-hub/backstage-plugin-techdocs-mcp-tool workspaces/mcp-integrations/plugins/techdocs-mcp-tool patch v0.3.0

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
9.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link
Contributor

@gabemontero gabemontero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one clarification question only based on the debug you @johnmcollier and @maysunfaisal did last week that you noted in scrum status

definitely getting into the nitty gritty wrt all this ... cool deal

tags: z // need to see how the MCP backend will handle this
.array(z.string())
tags: z
.string()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any sense @johnmcollier @maysunfaisal if the use of arrays was a violation of the MCP spec or is this a work around for how llama stack implements MCP tool calling ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants