refactor: update Config to use Area struct and validate areas

Amolith created

Change summary

main.go | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

Detailed changes

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"`
 }