mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 12:04:44 +03:00
ac31455d99
AI agents (Claude, Cursor, VS Code) can manage the panel through a stateless streamable-HTTP MCP endpoint. Every tool re-enters the router with the caller's credentials, so authentication, token scopes, CSRF and runtime.Runtime dispatch apply exactly as for the REST API; a restricted token scope is refused, log text is fenced as untrusted data, and each tool call is written to the panel log. The endpoint hands an API token's whole reach to the agent that holds it, so it is off by default: a panel answers 404 until the MCP server is enabled under Settings -> Security -> API Token (the mcpEnable setting).
126 lines
5.5 KiB
Modula-2
126 lines
5.5 KiB
Modula-2
module github.com/mhsanaei/3x-ui/v3
|
|
|
|
go 1.27.4
|
|
|
|
require (
|
|
github.com/amnezia-vpn/amneziawg-go/v3 v3.1.20261116
|
|
github.com/apernet/quic-go v0.61.1-0.20260806010916-184d081eef3e
|
|
github.com/gin-contrib/gzip v1.2.10
|
|
github.com/gin-contrib/sessions v1.1.4
|
|
github.com/gin-gonic/gin v1.12.0
|
|
github.com/go-ldap/ldap/v3 v3.4.15
|
|
github.com/go-playground/validator/v10 v10.30.6
|
|
github.com/goccy/go-json v0.12.0
|
|
github.com/goccy/go-yaml v1.19.2
|
|
github.com/google/uuid v1.6.0
|
|
github.com/gorilla/websocket v1.5.4-0.20240701034025-d67f41855da4
|
|
github.com/jackc/pgx/v5 v5.13.0
|
|
github.com/joho/godotenv v1.5.1
|
|
github.com/klauspost/compress v1.20.5
|
|
github.com/mattn/go-sqlite3 v1.14.53
|
|
github.com/modelcontextprotocol/go-sdk v1.8.0
|
|
github.com/mymmrac/telego v1.14.0
|
|
github.com/nicksnyder/go-i18n/v2 v2.7.0
|
|
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
|
|
github.com/quic-go/quic-go v0.65.0
|
|
github.com/refraction-networking/utls v1.8.3-0.20261108164504-a13c59ffe98b
|
|
github.com/robfig/cron/v3 v3.0.1
|
|
github.com/shirou/gopsutil/v4 v4.26.10
|
|
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
|
github.com/valyala/fasthttp v1.80.0
|
|
github.com/vishvananda/netlink v1.3.1
|
|
github.com/xlzd/gotp v0.1.0
|
|
github.com/xtls/xray-core v1.260327.1-0.20261109052709-676eaf66f8f0
|
|
go.uber.org/atomic v1.12.0
|
|
golang.org/x/crypto v0.59.0
|
|
golang.org/x/net v0.63.0
|
|
golang.org/x/sync v0.25.0
|
|
golang.org/x/sys v0.50.0
|
|
golang.org/x/text v0.44.0
|
|
google.golang.org/grpc v1.86.0-dev
|
|
google.golang.org/protobuf v1.36.12
|
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1
|
|
gorm.io/driver/postgres v1.6.3
|
|
gorm.io/driver/sqlite v1.6.0
|
|
gorm.io/gorm v1.31.2
|
|
gvisor.dev/gvisor v0.0.0-20260122175437-89a5d21be8f0
|
|
pgregory.net/rapid v1.3.0
|
|
)
|
|
|
|
require (
|
|
github.com/Azure/go-ntlmssp v0.1.1 // indirect
|
|
github.com/bytedance/gopkg v0.1.4 // indirect
|
|
github.com/bytedance/sonic v1.15.5 // indirect
|
|
github.com/bytedance/sonic/loader v0.5.3 // indirect
|
|
github.com/cloudwego/base64x v0.1.7 // indirect
|
|
github.com/ebitengine/purego v0.11.3 // indirect
|
|
github.com/gabriel-vasile/mimetype v1.4.16 // indirect
|
|
github.com/gin-contrib/sse v1.2.1 // indirect
|
|
github.com/go-asn1-ber/asn1-ber v1.5.8 // indirect
|
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
|
github.com/go-playground/locales v0.14.2 // indirect
|
|
github.com/go-playground/universal-translator v0.18.2 // indirect
|
|
github.com/google/btree v1.1.3 // indirect
|
|
github.com/google/jsonschema-go v0.4.3 // indirect
|
|
github.com/gorilla/context v1.1.2 // indirect
|
|
github.com/gorilla/securecookie v1.1.2 // indirect
|
|
github.com/gorilla/sessions v1.4.0 // indirect
|
|
github.com/huin/goupnp v1.3.1 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.4 // indirect
|
|
github.com/jackpal/go-nat-pmp v1.1.0 // indirect
|
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
|
github.com/jinzhu/now v1.1.5 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/juju/ratelimit v1.0.2 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.4.2 // indirect
|
|
github.com/koron/go-ssdp v0.9.2 // indirect
|
|
github.com/leodido/go-urn v1.5.0 // indirect
|
|
github.com/libp2p/go-nat v1.0.1-0.20250821073202-01afc089f138 // indirect
|
|
github.com/libp2p/go-netroute v0.4.0 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20261101121723-be84dd9509a0 // indirect
|
|
github.com/mattn/go-isatty v0.0.24 // indirect
|
|
github.com/miekg/dns v1.1.73 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/molecule-man/go-brrr v1.3.1 // indirect
|
|
github.com/pelletier/go-toml/v2 v2.4.3 // indirect
|
|
github.com/pion/dtls/v3 v3.1.16 // indirect
|
|
github.com/pion/logging v0.2.4 // indirect
|
|
github.com/pion/stun/v3 v3.1.7 // indirect
|
|
github.com/pion/transport/v4 v4.1.3 // indirect
|
|
github.com/pion/transport/v5 v5.1.5 // indirect
|
|
github.com/pires/go-proxyproto v0.16.0 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20260916203055-22a1a467d9f0 // indirect
|
|
github.com/quic-go/qpack v0.6.0 // indirect
|
|
github.com/rogpeppe/go-internal v1.16.0 // indirect
|
|
github.com/segmentio/asm v1.1.3 // indirect
|
|
github.com/segmentio/encoding v0.5.4 // indirect
|
|
github.com/tklauser/go-sysconf v0.4.0 // indirect
|
|
github.com/tklauser/numcpus v0.12.0 // indirect
|
|
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
|
github.com/ugorji/go/codec v1.3.2 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fastjson v1.6.10 // indirect
|
|
github.com/vishvananda/netns v0.0.5 // indirect
|
|
github.com/wlynxg/anet v0.0.5 // indirect
|
|
github.com/xtls/reality v0.0.0-20261108101329-4bb46b2afd8b // indirect
|
|
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
|
|
github.com/yuin/gopher-lua v1.1.2 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
|
go.mongodb.org/mongo-driver/v2 v2.10.1 // indirect
|
|
go4.org/netipx v0.0.0-20260823151212-3075585bcbeb // indirect
|
|
golang.org/x/arch v0.33.0 // indirect
|
|
golang.org/x/crypto/x509roots/fallback v0.0.0-20261030153154-30a33513ff6d // indirect
|
|
golang.org/x/exp v0.0.0-20261121134650-e1094eeca1b5 // indirect
|
|
golang.org/x/oauth2 v0.36.0 // indirect
|
|
golang.org/x/time v0.16.0 // indirect
|
|
golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2 // indirect
|
|
golang.zx2c4.com/wireguard v0.0.0-20261024220952-b3bc704ef0ee // indirect
|
|
golang.zx2c4.com/wireguard/windows v1.1.1 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20261118221215-c8830f628b3f // indirect
|
|
layeh.com/gopher-luar v1.0.11 // indirect
|
|
lukechampine.com/blake3 v1.4.1 // indirect
|
|
)
|