Skip to content

Conversation

@abrar360
Copy link

When the jinja template (body.j2) is used to render the functions made available by the MCP server, there is a default value argument which is referenced in the template.

When this argument is a boolean or int, everything is fine. But for string args which have a default value, the quotes don't get added around the value leading to a NameError.

To reproduce:

@evilsocket
Copy link
Owner

tests failing i see

@abrar360
Copy link
Author

Not sure if this is a python version issue. I'm running 3.11.3.

Here is a trace of it on my end, without my fix:

image

@evilsocket evilsocket closed this Jul 29, 2025
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.

2 participants