MCP Tool definition interpolating "."

Describe the Bug

I’m trying to define an MCP Tool in Cursor with args like this:

          "run",
          "--spec", 
          ".",
          "stackhawk-mcp"

However, looking at the View Output:Output:MCP Logs in Cursor, I see this:

2025-07-16 15:22:47.572 [info] user-stackhawk: Starting new stdio process with command: pipx run --spec /Users/topher/Cursor/osprey/osprey stackhawk-mcp

Where the “.” in the args has been replaced with Cursor’s CWD.

I’ve tried to escape it in a bunch of different ways, but nothing fixes it.

Steps to Reproduce

  1. Define an MCP Tool with args that have a “.” character
  2. Watch the View Output:Output:MCP Logs in Cursor and notice that the “.” gets replaced with a Folder path

Expected Behavior

That the “.” characters in the MCP Tool args should not be replaced with a Folder path.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Topher_Lamey and welcome to Cursor Forum.

Thank you for the detailed bug report. Could you share what escaping you already tried? It would help a lot.

Yup - I’ve tried “\\.”, “\”.\“”, “\u002E”, “‘.’”

Also tried it embedded in other args like “–spec \.” but Cursor either turns it into a directory path or passes the escape characters with:

pipx run --spec \.\ stackhawk-mcp

Which breaks the tool because it wants a single “.” to work. In this case, the tool doesn’t want a filesystem folder for “.”, it’s using the character as a search path in the python package.

Great thanks, will forward it to Cursor Team

cc @danperks

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.