Skip to content

Bug: Runtime attribute needs to be more resilient to junk #24

@walmsles

Description

@walmsles

Bug Description

Need to sanitise the inputs from MCP client prior to validation. Need to trim whitespace from start/end of inputs and force lowercase.

Steps To Reproduce

When using MCP inspector can add \n to inputs which causes the search to fail with "Invalid runtime"

Same for mixed case spelling other than all lowercase.

Expected Behavior

When sending mixed case or whitespace padded data - the case and whitespace should be ignored and search to work correctly.

Actual Behavior

When sending runtime as "python\n" get error "invalid runtime"

Same for: "Python", "PYTHON"

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been released

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions