fix(binding-mcp-schema-registry): support permanent delete for subject and schema version - #2536
Conversation
…t and schema version The bundled Karapace OpenAPI spec's delete_subject and delete_schema_version operations only declared their path parameters, so there was no way to pass Karapace's permanent=true query flag through the generated MCP tool schema to purge a soft-deleted subject or schema version. Add an optional permanent boolean query parameter to both operations; the existing OpenAPI-driven MCP tool generation picks it up automatically for both the tool's inputSchema and the outgoing HTTP request. Fixes #2533 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fr7pZUuTmie5mzpxdHvmW9
|
The Confirmed on Generated by Claude Code |
Description
The bundled Karapace OpenAPI spec's
delete_subjectanddelete_schema_versionoperations only declared their path parameters, so there was no way to pass Karapace'spermanent=truequery flag through the generated MCP tool schema to purge a soft-deleted subject or schema version — thekafka_sr__delete_subject/kafka_sr__delete_schema_versiontools could only ever soft-delete, with no cleanup path.Adds an optional
permanentboolean query parameter to both operations inkarapace-schema-registry.openapi.json. The existing OpenAPI-driven MCP tool generation (binding-mcp-openapi) picks this up automatically for both the tool'sinputSchemaand the outgoing HTTP request — no Java code changes were needed.Per this repo's test-first discipline: new k3po
.rptscript pairs (delete.subject.permanent,delete.schema.version.permanent) were written first for both the MCP and HTTP sides, with corresponding IT methods added toMcpSchemaRegistryProxyIT,McpSchemaRegistryClientIT,McpServerIT, andHttpClientIT, and thetools/listexpectedinputSchemastrings updated — confirmed failing against the current code before the OpenAPI change, and passing after.Fixes #2533
Test plan
mvn verify -pl runtime/binding-mcp-schema-registry— full IT suite green (24 scenarios, including the 4 newpermanent-delete ones)mvn verify -pl specs/binding-mcp-schema-registry.spec— spec-level peer-to-peer verification (McpServerIT,HttpClientIT) greenmvn checkstyle:check/mvn license:check— clean🤖 Generated with Claude Code
https://claude.ai/code/session_01Fr7pZUuTmie5mzpxdHvmW9
Generated by Claude Code