Add MCP server

This commit is contained in:
Arnaud Delcasse
2025-11-03 11:45:23 +01:00
parent d992a7984f
commit 52de8d363e
18 changed files with 997 additions and 210 deletions

View File

@@ -20,7 +20,7 @@ func ReadConfig() (*viper.Viper, error) {
"listen": "0.0.0.0:8080",
},
"mcp": map[string]any{
"enabled": false,
"enabled": true,
"listen": "0.0.0.0:8081",
},
},
@@ -123,6 +123,26 @@ func ReadConfig() (*viper.Viper, error) {
"journeys": map[string]any{
"enabled": true,
"search_view": "tabs",
"solutions": map[string]any{
"solidarity_transport": map[string]any{
"enabled": true,
},
"organized_carpool": map[string]any{
"enabled": true,
},
"carpool_operators": map[string]any{
"enabled": true,
},
"transit": map[string]any{
"enabled": true,
},
"fleet_vehicles": map[string]any{
"enabled": true,
},
"knowledge_base": map[string]any{
"enabled": true,
},
},
},
"solidarity_transport": map[string]any{
"enabled": true,
@@ -226,8 +246,14 @@ func ReadConfig() (*viper.Viper, error) {
},
},
"geo": map[string]any{
"type": "addok", // Options: "pelias", "addok"
"pelias": map[string]any{
"url": "https://geocode.ridygo.fr",
"url": "https://geocode.ridygo.fr",
"autocomplete": "/autocomplete?text=",
},
"addok": map[string]any{
"url": "https://api-adresse.data.gouv.fr",
"autocomplete": "/search/?q=",
},
},
"geography": map[string]any{