onesvm-browser-server/server/internal/gateway/mcpshims.go
chii eb972dfa93 feat: 落地 browser-server 控制面并打通 mgr1 海外订阅
单二进制三角色 + Dock 适配器 + Swarm stack 达到可部署态;mgr1 实测订阅经 central-proxy bootstrap,探活 alive=41/52。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:05:12 +08:00

22 lines
643 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// mcpshims.go:MCP 参数 shim(契约输入类型局部镜像,避免 mcphandler.go 超 600 行)。
package gateway
import (
"onesvm.com/onesvm/browser-server/internal/contract"
)
// contractSearchInput search 参数解码 shim。
type contractSearchInput struct {
contract.SearchInput
}
// search 返回契约输入指针。
func (i *contractSearchInput) search() *contract.SearchInput { return &i.SearchInput }
// contractReadInput read 参数解码 shim。
type contractReadInput struct {
contract.ReadInput
}
// read 返回契约输入指针。
func (i *contractReadInput) read() *contract.ReadInput { return &i.ReadInput }