Make API bool parameters in search_repos and list_releases optional (#40) #44

Merged
appleboy merged 2 commits from fitithw/gitea-mcp:main into main 2025-05-27 12:20:47 +00:00
Contributor

Fix #40

Left the mcp.DefaultBool(false) for is_draft and is_pre_release in list_releases, because I guess they are default, but it's up to the client whether to set them or not.

mcp.WithBoolean("is_draft", mcp.Description("Whether the release is draft"), mcp.DefaultBool(false)),
mcp.WithBoolean("is_pre_release", mcp.Description("Whether the release is pre-release"), mcp.DefaultBool(false)),

Fix #40 Left the `mcp.DefaultBool(false)` for `is_draft` and `is_pre_release` in `list_releases`, because I guess they are default, but it's up to the client whether to set them or not. https://gitea.com/fitithw/gitea-mcp/src/commit/11e04b5b8de5dc8a60c1d0a10dd9979e0d31998f/operation/repo/release.go#L67-L68
fitithw added 2 commits 2025-05-27 08:19:57 +00:00
Make parameters is_draft and is_pre_release in list_releases optional.
Some checks failed
check-and-test / check-and-test (pull_request) Has been cancelled
check-and-test / Run govulncheck (pull_request) Has been cancelled
11e04b5b8d
appleboy approved these changes 2025-05-27 12:20:33 +00:00
appleboy merged commit a7061f9b64 into main 2025-05-27 12:20:47 +00:00
Sign in to join this conversation.
No description provided.