feat: add google maps mcp source

This commit is contained in:
2026-06-13 00:51:53 +01:00
parent ef7301ab18
commit ac90d46c2a
14 changed files with 492 additions and 1 deletions

View File

@@ -66,11 +66,17 @@ export function SourceConfigPanel({ source, onUpdate }: SourceConfigPanelProps)
return creds
}
function hasUserConfigFields(): boolean {
return Object.values(source.fields).some((field) => !isCredentialField(field))
}
function buildReplaceBody(enabledValue: boolean): Parameters<typeof replaceSource>[1] {
const body: Parameters<typeof replaceSource>[1] = { enabled: enabledValue }
if (Object.keys(source.fields).length > 0) {
if (hasUserConfigFields()) {
body.config = getUserConfig()
}
return body
}

View File

@@ -157,6 +157,12 @@ const sourceDefinitions: SourceDefinition[] = [
description: "Exa web search action. Requires EXA_API_KEY on the backend.",
fields: {},
},
{
id: "freya.google-maps",
name: "Google Maps",
description: "Google Maps Grounding Lite MCP tools for places, weather, routes, and Place IDs.",
fields: {},
},
]
export function fetchSources(): Promise<SourceDefinition[]> {

View File

@@ -15,6 +15,7 @@ import {
Loader2,
TrainFront,
LogOut,
Map as MapIcon,
MapPin,
Rss,
Server,
@@ -49,6 +50,7 @@ const SOURCE_ICONS: Record<string, React.ComponentType<{ className?: string }>>
"freya.weather": CloudSun,
"freya.caldav": CalendarDays,
"freya.google-calendar": Calendar,
"freya.google-maps": MapIcon,
"freya.tfl": TrainFront,
}