Skip to content

Conversation

gregnr
Copy link
Collaborator

@gregnr gregnr commented May 8, 2025

We use some Node.js path parsing functions like fileURLToPath(), join(), and relative() when extracting edge function files from eszip archives and normalizing paths for the LLM. Our edge function's paths (like entrypoint_path and import_map_path) are always in posix format, but the above functions will change behaviour based on the current running OS. This means that if you run the MCP server on Windows, it will fail to parse the above paths correctly.

This PR fixes this to opt out of Windows path parsing and explicitly use posix paths.

Fixes #66

@gregnr gregnr merged commit 4670054 into main May 8, 2025
2 checks passed
GQAdonis pushed a commit to skytok-net/supabase-mcp that referenced this pull request Aug 14, 2025
…edge-function-windows

fix: edge function path parsing on windows
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.

list_edge_function error "File URL path must be absolute"
2 participants