refactor: share the default tool services between surfaces

Move the composition of the default tool services from the Node MCP
server into gods-eye-view/tools/services, a portable export. Given a
fetch that resolves the sources' /api paths, it builds the same services
in a browser as on the local MCP server, so other surfaces can compose
the same catalog. Queries still read only their services.
This commit is contained in:
Sameh Khamis committed 2026-10-01 13:12:34 -07:00
1 parent 0dbd6375fc
commit a8b5860e9f
6 files changed
+141 -65

No files matched your search

+2 -1
View File
@@ -253,6 +253,7 @@
"./sources/transit-service": "./src/sources/transitService.js",
"./sources/map-features": "./src/sources/overpassFeatures.js",
"./tools": "./src/tools/index.js",
"./tools/mcp": "./src/tools/mcp/index.js"
"./tools/mcp": "./src/tools/mcp/index.js",
"./tools/services": "./src/tools/services.js"
}
}