Skip to content

Commit 31becb5

Browse files
manusaclaude
andcommitted
style: fix struct field alignment in Server (go fmt)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Marc Nuri <marc@marcnuri.com>
1 parent fcb6ff2 commit 31becb5

2 files changed

Lines changed: 8 additions & 20 deletions

File tree

pkg/api/toolsets.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,6 @@ func NewToolCallResultFull(text string, structured any, err error) *ToolCallResu
8181
}
8282
}
8383

84-
// NewToolCallResultFull creates a ToolCallResult with both human-readable text
85-
// and structured content for MCP Apps UI rendering.
86-
// Use this when the text representation differs from a JSON serialization of the
87-
// structured content (e.g., YAML or Table text alongside extracted structured data).
88-
func NewToolCallResultFull(text string, structured any, err error) *ToolCallResult {
89-
return &ToolCallResult{
90-
Content: text,
91-
StructuredContent: structured,
92-
Error: err,
93-
}
94-
}
95-
9684
// NewToolCallResultStructured creates a ToolCallResult with structured content.
9785
// The structured value is automatically JSON-serialized into the Content field
9886
// for backward compatibility with MCP clients that don't support structuredContent.

pkg/mcp/mcp.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ func (c *Configuration) isToolApplicable(tool api.ServerTool) bool {
6464
}
6565

6666
type Server struct {
67-
mu sync.RWMutex
68-
configuration *Configuration
69-
server *mcp.Server
70-
enabledTools []string
71-
enabledPrompts []string
72-
registeredAppURIs []string // tracked for cleanup on reload
73-
p internalk8s.Provider
74-
metrics *metrics.Metrics // Metrics collection system
67+
mu sync.RWMutex
68+
configuration *Configuration
69+
server *mcp.Server
70+
enabledTools []string
71+
enabledPrompts []string
72+
registeredAppURIs []string // tracked for cleanup on reload
73+
p internalk8s.Provider
74+
metrics *metrics.Metrics // Metrics collection system
7575
}
7676

7777
func NewServer(configuration Configuration, targetProvider internalk8s.Provider) (*Server, error) {

0 commit comments

Comments
 (0)