-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmodels.go
More file actions
36 lines (28 loc) · 758 Bytes
/
models.go
File metadata and controls
36 lines (28 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package server
import "github.com/BrunoKrugel/echo-mcp/pkg/types"
type InitializeResponse struct {
Capabilities *Capabilities `json:"capabilities"`
ServerInfo *ServerInfo `json:"serverInfo"`
ProtocolVersion string `json:"protocolVersion"`
}
type Capabilities struct {
Tools map[string]any `json:"tools"`
}
type ServerInfo struct {
Name string `json:"name"`
Version string `json:"version"`
}
type ToolsListResponse struct {
Tools []types.Tool `json:"tools"`
}
type ToolCallRequest struct {
Arguments map[string]any `json:"arguments"`
Name string `json:"name"`
}
type ToolCallResponse struct {
Content []Content `json:"content"`
}
type Content struct {
Type string `json:"type"`
Text string `json:"text"`
}