Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions blues-expert/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.gitignore

# Documentation
*.md
README*

# Test files
Expand Down Expand Up @@ -35,4 +34,4 @@ main

# Build artifacts
/build/
/dist/
/dist/
10 changes: 10 additions & 0 deletions blues-expert/lib/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ var docs embed.FS

// Firmware Tools
func HandleFirmwareEntrypointTool(ctx context.Context, request *mcp.CallToolRequest, args FirmwareEntrypointArgs) (*mcp.CallToolResult, any, error) {

if args.Sdk == "" {
return &mcp.CallToolResult{
Content: []mcp.Content{
&mcp.TextContent{Text: "Error: SDK parameter is required and cannot be empty. Valid values are: Arduino, C, Zephyr, Python"},
},
IsError: true,
}, nil, nil
}

// Get the SDK & Index file - convert to lowercase for directory name
sdk := strings.ToLower(args.Sdk)
indexFile := fmt.Sprintf("docs/%s/index.md", sdk)
Expand Down