Development
Convert file matching patterns (Glob) to regular expressions
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/glob-to-regex' \
-H 'Content-Type: application/json' \
-d '{"globPattern":"e.g., src/**/*.ts","extended":true,"globstar":true,"caseInsensitive":false,"testString":"Enter one test string per line to verify the regex..."}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/glob-to-regex| Name | Type | Required | Description |
|---|---|---|---|
| globPattern | text | Yes | — |
| extended | checkbox | No | Support brace expansion like {a,b,c} |
| globstar | checkbox | No | Support ** for recursive directory matching |
| caseInsensitive | checkbox | No | Match regardless of case |
| testString | textarea | No | One string per line. Results will show which strings match. |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-glob-to-regex": {
"name": "glob-to-regex",
"description": "Convert file matching patterns (Glob) to regular expressions",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=glob-to-regex",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "glob-to-regex",
"arguments": {
"globPattern": "e.g., src/**/*.ts",
"extended": true,
"globstar": true,
"caseInsensitive": false,
"testString": "Enter one test string per line to verify the regex..."
}
}
}Questions or issues? Contact [email protected]
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}