Skip to content

Commit

Permalink
🚑 Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
wesen committed Jan 21, 2025
1 parent c1118d2 commit c6ed50b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pkg/server/responses.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package server

import "github.com/go-go-golems/go-go-mcp/pkg/protocol"

// ListPromptsResult is the response type for prompts/list method
type ListPromptsResult struct {
Prompts []protocol.Prompt `json:"prompts"`
NextCursor string `json:"nextCursor"`
}

// ListResourcesResult is the response type for resources/list method
type ListResourcesResult struct {
Resources []protocol.Resource `json:"resources"`
NextCursor string `json:"nextCursor"`
}

// ListToolsResult is the response type for tools/list method
type ListToolsResult struct {
Tools []protocol.Tool `json:"tools"`
NextCursor string `json:"nextCursor"`
}

0 comments on commit c6ed50b

Please sign in to comment.