Skip to content
Merged
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
7 changes: 6 additions & 1 deletion pkg/resources/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ func (r *Docs) FetchDocsResources(_ context.Context, article string) ([]mcp.Reso

default:

// For other articles, read the file directly from the filesystem
// Sometimes LLMs forget to add the .md extension, so we check for that
if !strings.HasSuffix(article, ".md") {
article += ".md"
}

// Read the file directly from the filesystem
fileData, err := r.docsFS.ReadFile(article)
if err != nil {
return nil, fmt.Errorf("failed to read file %s: %w", article, err)
Expand Down