Renovate Bot
815a0e26aa
fix(deps): update go toolchain directive to v1.26.6 [security] ( #242 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [go](https://go.dev/ ) ([source](https://github.com/golang/go )) | toolchain | patch | `1.26.5` → `1.26.6` |
---
### Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna
[CVE-2026-39821](https://nvd.nist.gov/vuln/detail/CVE-2026-39821 ) / [GO-2026-5026](https://pkg.go.dev/vuln/GO-2026-5026 )
<details>
<summary>More information</summary>
#### Details
The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode("xn--example-.com") incorrectly returns the name "example.com" rather than an error.
This behavior can lead to privilege escalation in programs using the idna package. For example, a program which performs privilege checks on the ASCII hostname may reject "example.com" but permit "xn--example-.com". If that program subsequently converts the ASCII hostname to Unicode, it will inadvertently permits access to the Unicode name "example.com".
#### Severity
Unknown
#### References
- [https://go.dev/cl/767220 ](https://go.dev/cl/767220 )
- [https://go.dev/issue/78760 ](https://go.dev/issue/78760 )
- [https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 ](https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-5026 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Parsing an invalid SVCB or HTTPS RR can panic in golang.org/x/net/dns/dnsmessage
BIT-golang-2026-46600 / [CVE-2026-46600](https://nvd.nist.gov/vuln/detail/CVE-2026-46600 ) / [GO-2026-5942](https://pkg.go.dev/vuln/GO-2026-5942 )
<details>
<summary>More information</summary>
#### Details
Parsing an invalid SVCB or HTTPS RR can panic when the size of a parameter value overflows the message buffer.
#### Severity
Unknown
#### References
- [https://go.dev/cl/786345 ](https://go.dev/cl/786345 )
- [https://go.dev/issue/79795 ](https://go.dev/issue/79795 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-5942 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Enforce maximum recursion depth in encoding/asn1
BIT-golang-2026-33818 / [CVE-2026-33818](https://nvd.nist.gov/vuln/detail/CVE-2026-33818 ) / [GO-2026-5972](https://pkg.go.dev/vuln/GO-2026-5972 )
<details>
<summary>More information</summary>
#### Details
Enforce a recursion limit in Unmarshal to prevent stack exhaustion when parsing deeply-nested, recursive structures.
#### Severity
Unknown
#### References
- [https://go.dev/issue/80405 ](https://go.dev/issue/80405 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
- [https://go.dev/cl/814980 ](https://go.dev/cl/814980 )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-5972 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Add recursion depth guard during decode in encoding/xml
BIT-golang-2026-56859 / [CVE-2026-56859](https://nvd.nist.gov/vuln/detail/CVE-2026-56859 ) / [GO-2026-6088](https://pkg.go.dev/vuln/GO-2026-6088 )
<details>
<summary>More information</summary>
#### Details
Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.
#### Severity
Unknown
#### References
- [https://go.dev/issue/80481 ](https://go.dev/issue/80481 )
- [https://go.dev/cl/803320 ](https://go.dev/cl/803320 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-6088 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Apply ReadHeaderTimeout when doing unencrypted HTTP/2 check in net/http
BIT-golang-2026-56853 / [CVE-2026-56853](https://nvd.nist.gov/vuln/detail/CVE-2026-56853 ) / [GO-2026-6089](https://pkg.go.dev/vuln/GO-2026-6089 )
<details>
<summary>More information</summary>
#### Details
When a server is configured to support unencrypted HTTP/2, it reads a few bytes from each new connection to see if they contain the HTTP/2 client preface. ReadHeaderTimeout is unexpectedly not being applied when doing this.
#### Severity
Unknown
#### References
- [https://go.dev/issue/80205 ](https://go.dev/issue/80205 )
- [https://go.dev/cl/795540 ](https://go.dev/cl/795540 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-6089 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Limit handshake messages we are willing to accept post-handshake in crypto/tls
BIT-golang-2026-56862 / [CVE-2026-56862](https://nvd.nist.gov/vuln/detail/CVE-2026-56862 ) / [GO-2026-6090](https://pkg.go.dev/vuln/GO-2026-6090 )
<details>
<summary>More information</summary>
#### Details
Handshake messages, such as KeyUpdate, are always considered as state-advancing, regardless of whether a handshake has been completed or not. As a result, a malicious client can keep sending KeyUpdate messages to force the server to keep performing key derivation operations indefinitely.
#### Severity
Unknown
#### References
- [https://go.dev/issue/80528 ](https://go.dev/issue/80528 )
- [https://go.dev/cl/804261 ](https://go.dev/cl/804261 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-6090 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Fix Javascript regexp context tracking in html/template
BIT-golang-2026-56858 / [CVE-2026-56858](https://nvd.nist.gov/vuln/detail/CVE-2026-56858 ) / [GO-2026-6091](https://pkg.go.dev/vuln/GO-2026-6091 )
<details>
<summary>More information</summary>
#### Details
Previously, pathological inputs could close an unescaped '/' early, allowing for attack-controlled data to inject arbitrary content, potentially leading to XSS.
#### Severity
Unknown
#### References
- [https://go.dev/issue/80435 ](https://go.dev/issue/80435 )
- [https://go.dev/cl/807100 ](https://go.dev/cl/807100 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-6091 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Avoid quadratic complexity in resolvePath in net/url
BIT-golang-2026-56860 / [CVE-2026-56860](https://nvd.nist.gov/vuln/detail/CVE-2026-56860 ) / [GO-2026-6218](https://pkg.go.dev/vuln/GO-2026-6218 )
<details>
<summary>More information</summary>
#### Details
Previously, resolving relative paths containing parent directory ('..') segments performed string conversions and buffer rewrites on each step, resulting in quadratic time complexity and high memory allocation overhead.
Now, path resolution operates on a byte buffer using index-based backtracking for '..' segments, eliminating the quadratic time complexity and significantly reducing memory allocations.
#### Severity
Unknown
#### References
- [https://go.dev/cl/803681 ](https://go.dev/cl/803681 )
- [https://go.dev/issue/80494 ](https://go.dev/issue/80494 )
- [https://groups.google.com/g/golang-announce/c/94pEornpRlI ](https://groups.google.com/g/golang-announce/c/94pEornpRlI )
This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-6218 ) and the [Go Vulnerability Database](https://github.com/golang/vulndb ) ([CC-BY 4.0](https://github.com/golang/vulndb#license )).
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- ""
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTEuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE5MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/242
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com >
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
2026-08-23 12:40:52 +00:00
Bo-Yi Wu
efcbdbb17f
refactor: replace mcp-go with the official MCP Go SDK ( #223 )
...
## Summary
Replace `github.com/mark3labs/mcp-go` with the official
`github.com/modelcontextprotocol/go-sdk v1.7.0`.
All 54 existing tools, scopes, CLI, `stdio` and HTTP (`/mcp`) modes, and
per-request authentication remain supported. This PR is limited to the SDK
equivalence migration; the stateless 2026 HTTP transport is deferred to a
follow-up PR.
## Verification
- Tool definitions were compared with `main` and matched for all 54 tools.
- `make lint`, `make fmt`, `go test -count=1 -race ./...`, `make build`, and
`make tidy` pass.
---------
Co-authored-by: bircni <bircni@icloud.com >
Co-authored-by: silverwind <me@silverwind.io >
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/223
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com >
Reviewed-by: bircni <bircni@icloud.com >
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2026-08-06 05:36:21 +00:00
silverwind
8b236c2e26
chore: align go version handling with gitea ( #226 )
...
Aligns Go version handling with gitea, see https://github.com/go-gitea/gitea/pull/38559 . `toolchain` names the build version, `go` stays the minimum.
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/226
Reviewed-by: techknowlogick <9+techknowlogick@noreply.gitea.com >
Co-authored-by: silverwind <me@silverwind.io >
2026-08-05 22:50:18 +00:00
Renovate Bot
3fcd864582
chore(deps): update dependencies ( #225 )
...
Co-authored-by: Renovate Bot <renovate-bot@gitea.com >
2026-08-03 13:18:41 +00:00
bircni
a998cc3389
chore(deps): update all dependencies to latest ( #212 )
...
Bumps all direct dependencies to their latest versions.
| Dependency | From | To |
| ----------------------------- | ------- | ------------ |
| `gitea.dev/sdk` | v1.0.1 | v1.2.0 |
| `github.com/mark3labs/mcp-go` | v0.45.0 | v0.56.0 |
| `go.uber.org/zap` | v1.27.1 | v1.28.0 |
| `go.uber.org/zap/exp` | — | v0.3.0 (new) |
### Required code change
mcp-go v0.56 moved transport logging to `log/slog` and renamed the streamable-HTTP logger option to `WithStreamableHTTPLogger(*slog.Logger)`. Added a `log.Slog()` bridge (via the official `zapslog` adapter) so the HTTP transport keeps logging through the existing zap pipeline, and switched `operation.go` to the new option.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/212
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: bircni <bircni@icloud.com >
2026-07-19 19:53:31 +00:00
Lunny Xiao
a35fd26112
replace gitea sdk ( #197 )
...
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/197
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com >
2026-05-28 02:41:43 +00:00
silverwind
c8004e9198
Update mcp-go to v0.45.0 ( #163 )
...
Update github.com/mark3labs/mcp-go from v0.44.0 to v0.45.0.
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/163
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-committed-by: silverwind <me@silverwind.io >
2026-03-24 17:07:40 +00:00
silverwind
bb9470a259
chore: update Go and Actions dependencies ( #132 )
...
## Summary
- Update Go dependencies: gitea SDK v0.22.1→v0.23.2, mcp-go v0.42.0→v0.44.0, zap v1.27.0→v1.27.1, go-version v1.7.0→v1.8.0, x/crypto v0.43.0→v0.48.0, x/sys v0.37.0→v0.41.0
- Update Actions: checkout v4→v6, setup-go v5→v6, build-push-action v5→v6, goreleaser-action v6→v7
## Test plan
- [x] `go test ./...` passes
- [x] `make build` succeeds
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/132
Co-authored-by: silverwind <me@silverwind.io >
Co-committed-by: silverwind <me@silverwind.io >
2026-02-22 17:10:25 +00:00
silverwind
8728c04748
chore: add golangci-lint, bump Go to 1.26, fix all lint issues ( #133 )
...
## Summary
- Add `.golangci.yml` with linter configuration matching the main gitea repo
- Add `lint`, `lint-fix`, `lint-go`, `lint-go-fix`, and `security-check` Makefile targets
- Add `tidy` Makefile target (extracts min Go version from `go.mod` for `-compat` flag)
- Bump minimum Go version to 1.26
- Update golangci-lint to v2.10.1
- Replace `golang/govulncheck-action` with `make security-check` in CI
- Add `make lint` step to CI
- Fix all lint issues across the codebase (formatting, `errors.New` vs `fmt.Errorf`, `any` vs `interface{}`, unused returns, stuttering names, Go 1.26 `new(expr)`, etc.)
- Remove unused `pkg/ptr` package (inlined by Go 1.26 `new(expr)`)
- Remove dead linter exclusions (staticcheck, gocritic, testifylint, dupl)
## Test plan
- [x] `make lint` passes
- [x] `go test ./...` passes
- [x] `make build` succeeds
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/133
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-committed-by: silverwind <me@silverwind.io >
2026-02-22 17:10:04 +00:00
appleboy
ba64780c2f
chore: upgrade Go dependencies to latest stable versions
...
- Update version of code.gitea.io/sdk/gitea to v0.22.1
- Upgrade github.com/mark3labs/mcp-go dependency to v0.42.0
- Bump golang.org/x/crypto to v0.43.0 and golang.org/x/sys to v0.37.0
Signed-off-by: appleboy <appleboy.tw@gmail.com >
2025-10-31 20:56:12 +08:00
Daniel
f6b45fdf6e
feat(org): add MCP tools for organization-level labels (list/create/edit/delete) ( #99 ) ( #102 )
...
This PR adds full support for managing organization-level labels via MCP. It uses the newly added SDK APIs now available on main branch, see https://gitea.com/gitea/go-sdk/issues/732 .
Registers following tools under label module and wires them into the MCP server as read/write tools:
- list_org_labels: list labels defined at the organization level (pagination supported)
- create_org_label: create a label in an organization (name, color, description, exclusive)
- edit_org_label: edit an organization label (name, color, description, exclusive)
- delete_org_label: delete an organization label by ID
Dependency note:
go.mod/go.sum updated to use the SDK main branch pseudo-version that includes the org-label APIs.
If you prefer to merge only after a tagged SDK release, I can bump the dependency to the new tag as soon as it’s available.
Thanks for considering!
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/102
Reviewed-by: Bo-Yi Wu (吳柏毅) <appleboy.tw@gmail.com >
Co-authored-by: Daniel <danielwichers@gmail.com >
Co-committed-by: Daniel <danielwichers@gmail.com >
2025-10-20 01:43:39 +00:00
appleboy
8c028ec48b
chore: update project and indirect dependencies to latest versions
...
- Update dependencies to newer versions for multiple modules
- Upgrade code.gitea.io/sdk/gitea to v0.22.0
- Upgrade github.com/mark3labs/mcp-go to v0.40.0
- Update indirect dependencies: github.com/mailru/easyjson, github.com/spf13/cast, golang.org/x/crypto, and golang.org/x/sys
Signed-off-by: appleboy <appleboy.tw@gmail.com >
2025-09-27 16:17:14 +08:00
Lunny Xiao
62cb6e7830
Use no session id ( #75 )
...
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/75
Reviewed-by: hiifong <i@hiif.ong >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-07-30 01:01:55 +00:00
appleboy
eb6b5a8f92
chore: upgrade Go dependencies to latest stable versions ( #73 )
...
- Bump github.com/mark3labs/mcp-go dependency to v0.35.0
- Update github.com/spf13/cast to v1.9.2
- Upgrade golang.org/x/crypto to v0.40.0
- Upgrade golang.org/x/sys to v0.34.0
Signed-off-by: appleboy <appleboy.tw@gmail.com >
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/73
Co-authored-by: appleboy <appleboy.tw@gmail.com >
Co-committed-by: appleboy <appleboy.tw@gmail.com >
2025-07-27 06:23:38 +00:00
Alex Kirhenshtein
b85a523983
Bump go-mcp version to 0.32.0 to mitigate Claude desktop connectivity issue ( #63 )
...
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/63
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: Bo-Yi Wu (吳柏毅) <appleboy.tw@gmail.com >
Co-authored-by: Alex Kirhenshtein <alk@netxms.org >
Co-committed-by: Alex Kirhenshtein <alk@netxms.org >
2025-06-21 03:34:17 +00:00
Bo-Yi Wu
34ca5d45db
refactor(args): request argument access and update dependencies ( #42 )
...
- Update dependencies to newer versions in go.mod
- Refactor all request argument accesses to use req.GetArguments() instead of direct access to req.Params.Arguments
- Change variable declaration for ListRepoCommitsTool from a grouped var block to a single var statement for consistency
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/42
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com >
Co-committed-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2025-05-26 06:10:10 +00:00
hiifong
70b9ac5b80
Support read only mode ( #36 )
...
Fix : #35
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/36
Co-authored-by: hiifong <f@ilo.nz >
Co-committed-by: hiifong <f@ilo.nz >
2025-04-20 09:09:29 +00:00
hiifong
afada4435e
Add Dockerfile ( #15 )
...
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/15
Co-authored-by: hiifong <f@ilo.nz >
Co-committed-by: hiifong <f@ilo.nz >
2025-04-06 04:46:27 +00:00
hiifong
2a9504fc5d
update ( #8 )
...
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/8
2025-03-27 07:31:39 +00:00
hiifong
10ebaa1964
Update go.mod
2025-03-23 14:52:47 +08:00
hiifong
72d9b5a8dd
Add debug mode and upgrade mcp-go to v0.14.1
2025-03-20 23:01:05 +08:00
hiifong
c4f619a907
Upgrade mcp-go to the latest version
2025-03-18 22:59:58 +08:00
appleboy
051ce0bab4
chore: remove unused dependencies for project cleanup
...
- Remove `testify` dependency
- Remove `go-spew` indirect dependency
- Remove `go-difflib` indirect dependency
- Remove `yaml.v3` indirect dependency
Signed-off-by: appleboy <appleboy.tw@gmail.com >
2025-03-16 13:57:53 +08:00
hiifong
2dd4aa94ad
Initialize commit
2025-03-16 00:21:29 +08:00