File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
15
15
"github.com/gabriel-vasile/mimetype"
16
16
"github.com/mark3labs/mcp-go/mcp"
17
+ "slices"
17
18
)
18
19
19
20
const (
@@ -318,10 +319,8 @@ func isTextFile(mimeType string) bool {
318
319
"application/x-shellscript" ,
319
320
}
320
321
321
- for _ , textType := range textApplicationTypes {
322
- if mimeType == textType {
323
- return true
324
- }
322
+ if slices .Contains (textApplicationTypes , mimeType ) {
323
+ return true
325
324
}
326
325
327
326
// Check for +format types
@@ -1763,7 +1762,7 @@ func (fs *FilesystemHandler) handleReadMultipleFiles(
1763
1762
}
1764
1763
1765
1764
// Convert the paths parameter to a string slice
1766
- pathsSlice , ok := pathsParam .([]interface {} )
1765
+ pathsSlice , ok := pathsParam .([]any )
1767
1766
if ! ok {
1768
1767
return nil , fmt .Errorf ("paths must be an array of strings" )
1769
1768
}
You can’t perform that action at this time.
0 commit comments