mcp icon indicating copy to clipboard operation
mcp copied to clipboard

Multiple modules: Name regex comparison failing for claude cli

Open sringopi opened this issue 1 year ago • 1 comments

Describe the bug

.mcp.json

Image

MCP servers failing claude CLI due to presence of period ( " . ") in the names. awslabs.some-aws-service-mcp-server. If renamed to awslabs-dynamodb-mcp-server, it works.

Using with Sonnet 3.7. Claude CLI version Version 1.0.1:

Expected Behavior

MCP servers getting picked up correctly from .mcp.json and claude cli functioning.

Current Behavior

Claude CLI failing.

Reproduction Steps

use awslabs mcp servers with claude cli coding assistant.

Possible Solution

rename mcp servers

Additional Information/Context

No response

OS

MacOS

Server

dynamodb-mcp-server

Server Version

No response

Region experiencing the issue

us-east-1

Other information

No response

Service quota

  • [x] I have reviewed the service quotas for this construct

sringopi avatar May 25 '25 00:05 sringopi

The problem seems to be that Claude CLI has a very strict regex on the MCP tool name. It doesn't allow dot. I don't think the actual MCP server cares about the tool name. It can be called "dynamodb", "ddb", whatever.

So I think the right path forward is to change all of our README/Template to replace dot with dash

  • "awslabs-dynamodb-mcp-server"
  • "awslabs-core-mcp-server"

erbenmo avatar May 28 '25 17:05 erbenmo