Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removed len(properties) > 0 validation in simulation #23

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

mhmd-azeez
Copy link
Contributor

@mhmd-azeez mhmd-azeez commented Dec 17, 2024

This makes my wordpress servlet pass the simulation

@mhmd-azeez mhmd-azeez requested a review from nilslice December 17, 2024 19:47
@@ -85,9 +85,6 @@ func validateToolDescription(tool ToolDescription) error {
if !ok {
return fmt.Errorf("tool %s: inputSchema.properties must be an object", tool.Name)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we also remove these validations rules?

Copy link
Member

Choose a reason for hiding this comment

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

if they are not accurate, then yes let's remove them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if this going to impact mcpx/mcp.run api cc @chrisdickinson

Choose a reason for hiding this comment

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

If I read the spec correctly the logic is "if properties are present, they must be an object". Otherwise I think we'll be okay from the mcpx/mcp.run perspective!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chrisdickinson thanks for the clarification, i have updated the simulation to follow that logic

Copy link

@chrisdickinson chrisdickinson left a comment

Choose a reason for hiding this comment

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

LGTM!

@mhmd-azeez mhmd-azeez merged commit e0dfc75 into main Dec 19, 2024
1 check passed
@mhmd-azeez mhmd-azeez deleted the fix-simulation branch December 19, 2024 10:09
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