Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

localstack-azure-client: the shell-syntax refusal doesn't say that quoting fixes it

未关闭 适合新手
#110 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

从argv.ts开始,issue指出,禁止的 shell 语法会针对多个字符和模式引发相同的AzSyntaxError消息。追踪如何检测被拒绝的输入,以及错误如何传递到命令响应。完成标准是拒绝信息指出对应的字符或模式,并说明给值加引号即可解决问题;同时覆盖报告中的&情况和列出的其他语法。

由索引模型根据 Issue 内容生成。

描述

What happens

localstack-azure-client refuses an unquoted & with a generic message. An agent calling rest with a two-parameter URL got:

rest --method get --url /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/local-rg/providers/Microsoft.ApiManagement/service/local-inventory-apim-test/apis/inventory-api/policies/policy?api-version=2022-08-01&format=rawxml
❌ Command not understood

Command contains forbidden shell syntax.

The agent concluded that "the MCP Azure tool rejects & in az rest URLs, so URLs can carry only one query parameter", dropped format=rawxml, and reported that as a limitation. That's not true. The same URL in double quotes works:

rest --method get --url "/subscriptions/…/policies/policy?api-version=2022-08-01&format=rawxml" --query properties.format
"rawxml"

Expected

The refusal should say which character was refused and that quoting the value fixes it. For example: "& outside quotes is shell syntax. Quote the value, for example --url \"…?a=1&b=2\"." argv.ts throws the same AzSyntaxError text for ;&|<>, $(, ${, backticks and newlines, so the message never says which one it found.

The same applies to $filter, $top and other query parameters. An agent that can't tell why its call was refused will route around the feature.

Context

  • MCP server 0.7.0 via npx
  • LocalStack Azure emulator 2026.11.0.dev501
  • Claude Code with claude-opus-5-5, deploying the api-management-function-app sample from localstack-azure-samples
主要语言
TypeScript
星标
29
派生
14
平均合并
3 天 16 小时
30 天内合并 PR
18

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

localstack/localstack-mcp-server 的其他 Issue

查看 localstack/localstack-mcp-server 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。