From 8dcbbbff04883af51261e22113628c6f3fb93cec Mon Sep 17 00:00:00 2001 From: Amolith Date: Fri, 18 Apr 2025 18:36:57 -0600 Subject: [PATCH] refactor: update Config to use Area struct and validate areas --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1461a5ad7ccc7cd18a85d408aa23cde890d93dfd..2c485e368b8f42fe3bbbea9188cb20ec992cff32 100644 --- a/main.go +++ b/main.go @@ -15,10 +15,16 @@ import ( "github.com/mark3labs/mcp-go/server" ) +// Area represents a Lunatask area with its name and ID +type Area struct { + Name string `toml:"name"` + ID string `toml:"id"` +} + // Config holds the application's configuration loaded from TOML type Config struct { AccessToken string `toml:"access_token"` - AreaID string `toml:"area_id"` + Areas []Area `toml:"areas"` }