Skip to content

Conversation

aittalam
Copy link
Member

@aittalam aittalam commented Aug 11, 2025

  • Added daemon configuration system with support for API (including CORS), and MCP timeout/interval settings.
  • Added daemon config CLI commands for managing daemon configuration:
    • mcpd config daemon get
    • mcpd config daemon set
    • mcpd config daemon list
    • mcpd config daemon validate
  • Added CORS support: Cross-Origin Resource Sharing configuration with origins, methods, headers, credentials, and max-age settings
  • Added documentation.

Co-authored-by: Davide Eynard davide.eynard@gmail.com

Closes: #50

image

aittalam and others added 5 commits August 15, 2025 15:20
* Git mv from server.go => api_server.go
* Follow Go naming conventions ApiServer => APIServer
* Introduce the deps + opts pattern to reduce constructor params
* Support configuring CORS and API shutdown timeout via options
@peteski22 peteski22 force-pushed the adding-cors-support branch from a0ab592 to 2ea1971 Compare August 15, 2025 15:48
* Support from existing config in .mcpd.toml file (not supported by mcpd config cmds yet)
* Support from flags supplied to daemon
* Split NewDaemonCmd
@peteski22 peteski22 force-pushed the adding-cors-support branch from 2ea1971 to 939c3cc Compare August 15, 2025 17:53
@peteski22 peteski22 changed the title Adding cors support Config system for mcpd including support for CORS Aug 15, 2025
* set: sets dot-path keys to values
* remove: removes dot-path keys (and their values)
* list: shows all config
* list --available: show all config keys that can be set
* get: gets the current value for a dot-path key
* Add validate command (mcpd config daemon validate)
* Adjust output for list (mcpd config daemon list)
@peteski22 peteski22 force-pushed the adding-cors-support branch from 06bf0c8 to b970342 Compare August 18, 2025 15:36
@peteski22 peteski22 marked this pull request as ready for review August 18, 2025 15:36
@peteski22 peteski22 merged commit b78d453 into main Aug 18, 2025
2 checks passed
@peteski22 peteski22 deleted the adding-cors-support branch August 18, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App: extend .mcpd.toml to allow for app configuration
2 participants