types

package
v0.0.0-...-f2e6f42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchInfo

type BranchInfo struct {
	Name       string `json:"name"`
	IsCurrent  bool   `json:"isCurrent"`
	CommitSHA  string `json:"commitSha"`
	CommitDate string `json:"commitDate"`
}

BranchInfo contiene información sobre una rama de Git.

type Content

type Content struct {
	Type string `json:"type"`
	Text string `json:"text"`
}

type GitConfig

type GitConfig struct {
	HasGit        bool   `json:"hasGit"`
	RepoPath      string `json:"repoPath"`
	RemoteURL     string `json:"remoteURL"`
	CurrentBranch string `json:"currentBranch"`
	IsGitRepo     bool   `json:"isGitRepo"`
	WorkspacePath string `json:"workspacePath"` // Directorio de trabajo configurado manualmente
}

GitConfig contiene la configuración del entorno Git local

type JSONRPCError

type JSONRPCError struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type JSONRPCRequest

type JSONRPCRequest struct {
	JSONRPC string                 `json:"jsonrpc"`
	ID      interface{}            `json:"id,omitempty"`
	Method  string                 `json:"method"`
	Params  map[string]interface{} `json:"params,omitempty"`
}

Estructuras del protocolo JSON-RPC 2.0

type JSONRPCResponse

type JSONRPCResponse struct {
	JSONRPC string        `json:"jsonrpc"`
	ID      interface{}   `json:"id,omitempty"`
	Result  interface{}   `json:"result,omitempty"`
	Error   *JSONRPCError `json:"error,omitempty"`
}

type Property

type Property struct {
	Type        string `json:"type"`
	Description string `json:"description"`
}

type Tool

type Tool struct {
	Name        string                 `json:"name"`
	Title       string                 `json:"title,omitempty"`
	Description string                 `json:"description"`
	InputSchema ToolInputSchema        `json:"inputSchema"`
	Annotations map[string]interface{} `json:"annotations,omitempty"`
}

Estructuras MCP para herramientas

type ToolCallResult

type ToolCallResult struct {
	Content []Content `json:"content"`
	IsError bool      `json:"isError,omitempty"`
}

type ToolInputSchema

type ToolInputSchema struct {
	Type       string              `json:"type"`
	Properties map[string]Property `json:"properties"`
	Required   []string            `json:"required,omitempty"`
}

type ToolsListResult

type ToolsListResult struct {
	Tools []Tool `json:"tools"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL