Skip to content

MCPServiceData

MCP 服务数据结构。

数据结构

go
type MCPServiceData struct {
    ID string // ID
    Name string // 服务名称
    Status string // 状态
    Config map[string]interface{} // 配置
}

使用示例

go
package main

import (
    "fmt"
    "log"
    
    cursor "github.com/vibe-coding-labs/go-cursor-sdk"
)

func main() {
    client, err := cursor.NewCursorClient(nil)
    if err != nil {
        log.Fatal(err)
    }
    defer client.Close()
    
    // 获取 MCPServiceData 数据
    // TODO: 添加具体示例
}

相关文档

Released under the MIT License.