mirror of
https://github.com/router-for-me/CLIProxyAPIPlus.git
synced 2026-04-04 03:31:21 +00:00
21 lines
523 B
Go
21 lines
523 B
Go
package main
|
|
|
|
import (
|
|
"encoding/hex"
|
|
"fmt"
|
|
"os"
|
|
|
|
cursorproto "github.com/router-for-me/CLIProxyAPI/v6/internal/auth/cursor/proto"
|
|
)
|
|
|
|
func main() {
|
|
// Encode MCP result with empty execId
|
|
resultBytes := cursorproto.EncodeExecMcpResult(1, "", `{"test": "data"}`, false)
|
|
fmt.Printf("Result protobuf hex: %s\n", hex.EncodeToString(resultBytes))
|
|
fmt.Printf("Result length: %d bytes\n", len(resultBytes))
|
|
|
|
// Write to file for analysis
|
|
os.WriteFile("mcp_result.bin", resultBytes)
|
|
fmt.Println("Wrote mcp_result.bin")
|
|
}
|