Add MCP server
This commit is contained in:
30
config.go
30
config.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user