zai-org / zai-org/feedback

[Bug] MCP parser fails on args strings with spaces

Open
#107 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2 status: 待评估 type: Bug
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

提交前确认 · Pre-submission checklist
  • 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category

工具调用 / MCP · Tool use / MCP

涉及的 Agent 框架 · Agent framework

ZCode Agent(自研)

严重程度 · Severity

影响体验 · Major (功能可用但体验受损 / works but degraded)

复现频率 · Reproducibility

必现 · Always

问题描述 · Description

The MCP parser fails on args strings with spaces, breaking them up.

复现步骤 · Steps to reproduce

Add an MCP server with spaces in its args, like a path, using either the form or JSON mode.

期望表现 · Expected behavior

It should preserve the spaces in the args.

实际表现 · Actual behavior

It breaks the args by spaces!!

ZCode 版本 · ZCode version

3.3.3

设备 / 系统 / 浏览器 · Device / OS / Browser

MacOS 26.5.1

截图 / 录屏 / 日志 · Screenshots / Recordings / Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the MCP parser entry point and reproduce the issue with an MCP server argument containing spaces in both form and JSON modes. Confirm that the parser preserves the spaces in the resulting args instead of splitting them, then verify both input modes behave consistently.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.