some fixes

This commit is contained in:
jubnl
2026-03-30 06:59:24 +02:00
parent 7b2d45665c
commit 153b7f64b7
20 changed files with 659 additions and 65 deletions

View File

@@ -168,14 +168,19 @@ export default function SettingsPage(): React.ReactElement {
}
const mcpEndpoint = `${window.location.origin}/mcp`
const mcpJsonConfig = JSON.stringify({
mcpServers: {
trek: {
url: mcpEndpoint,
headers: { Authorization: 'Bearer <your_token>' }
}
const mcpJsonConfig = `{
"mcpServers": {
"trek": {
"command": "npx",
"args": [
"mcp-remote",
"${mcpEndpoint}",
"--header",
"Authorization: Bearer <your_token>"
]
}
}, null, 2)
}
}`
// Map settings
const [mapTileUrl, setMapTileUrl] = useState<string>(settings.map_tile_url || '')