Skip to content

Conversation

codegen-sh[bot]
Copy link
Contributor

@codegen-sh codegen-sh bot commented Sep 18, 2025

Summary

Adds documentation for MCP server naming constraints to prevent connection failures caused by invalid server names.

Changes

  • Added naming requirements section to MCP servers documentation
  • Documented regex pattern: ^[a-zA-Z0-9_-]{1,128}$
  • Specified allowed characters: alphanumeric, hyphens, and underscores only
  • Added warning about dots and special characters causing failures
  • Included example showing correct naming convention

Context

This addresses the issue where MCP servers with dots in their names (like awslabs.aws-documentation-mcp-server) cause malformed tool calls due to Anthropic's regex validation requirements. The documentation now clearly specifies the naming constraints to prevent these failures.

Files Changed


💻 View my work • 💬 Initiated in #customer-requestsAbout Codegen
⛔ Remove Codegen from PR🚫 Ban action checks

- Document required naming pattern: ^[a-zA-Z0-9_-]{1,128}$
- Specify allowed characters: alphanumeric, hyphens, underscores only
- Add warning about dots and special characters causing failures
- Include example of correct naming convention

Fixes issue where MCP servers with dots in names (like awslabs.aws-documentation-mcp-server) cause malformed tool calls due to Anthropic's regex validation.

Co-authored-by: Edo Pujol <[email protected]>
Copy link

codecov bot commented Sep 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant