Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Properly escape tool description to avoid malformed 'Markup' object#408

Merged
daxian-dbw merged 1 commit into
PowerShell:mainPowerShell/AIShell:mainfrom
daxian-dbw:bugdaxian-dbw/AIShell:bugCopy head branch name to clipboard
Aug 6, 2025
Merged

Properly escape tool description to avoid malformed 'Markup' object#408
daxian-dbw merged 1 commit into
PowerShell:mainPowerShell/AIShell:mainfrom
daxian-dbw:bugdaxian-dbw/AIShell:bugCopy head branch name to clipboard

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

PR Summary

Tool description may contain characters like "[]", which will result in malformed Markup object because the square brackets characters have special meaning in markup language.

The set_config_value tool from the MCP server desktop-commander is an example of this bug -- it has "empty array ([])" in its description.

The fix is to escape tool description to avoid malformed 'Markup' object.

@daxian-dbw daxian-dbw merged commit 4242593 into PowerShell:main Aug 6, 2025
4 checks passed
@daxian-dbw daxian-dbw deleted the bug branch August 6, 2025 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.