Skip to content

Commit 9c0a098

Browse files
docs: add MCP server naming constraints
- 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]>
1 parent 105ea0b commit 9c0a098

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/integrations/mcp-servers.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ MCP servers are configured per repository using a JSON configuration file. The c
5757
- **Access controls** - Specify permissions and security settings
5858
- **Environment variables** - Configure server-specific settings and secrets
5959

60+
### Server Naming Requirements
61+
62+
MCP server names must follow strict naming conventions to ensure compatibility:
63+
64+
- **Allowed characters**: Only alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), and underscores (_)
65+
- **Length limit**: Maximum 128 characters
66+
- **Pattern**: Must match the regex `^[a-zA-Z0-9_-]{1,128}$`
67+
68+
<Warning>
69+
Server names containing dots (.), spaces, or other special characters will cause connection failures. For example, `awslabs.aws-documentation-mcp-server` should be renamed to `awslabs-aws-documentation-mcp-server`.
70+
</Warning>
71+
6072
## Permissions
6173

6274
The Codegen MCP integration requires the following permissions:

0 commit comments

Comments
 (0)