1 parent
9e848518c9
commit
67e85e19ae
3 files changed
+5
-4
No files matched your search
@@ -6,4 +6,5 @@ const (
|
||||
TableUsage = "json, yaml, or table"
|
||||
SilentUsage = "json, yaml, or silent"
|
||||
JPUsage = "JSONPath expression to filter the output"
|
||||
JsonMIME = "application/json"
|
||||
)
|
||||
@@ -84,7 +84,7 @@ func listHandler(
|
||||
|
||||
var allI18nLanguages = mcp.NewResource(
|
||||
rURI, rName,
|
||||
mcp.WithMIMEType("application/json"),
|
||||
mcp.WithMIMEType(cmd.JsonMIME),
|
||||
mcp.WithResourceDescription(long),
|
||||
)
|
||||
|
||||
@@ -102,7 +102,7 @@ func resourceHandler(
|
||||
contents := []mcp.ResourceContents{
|
||||
mcp.TextResourceContents{
|
||||
URI: rURI,
|
||||
MIMEType: "application/json",
|
||||
MIMEType: cmd.JsonMIME,
|
||||
Text: writer.String(),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ func listHandler(
|
||||
|
||||
var alli18nRegion = mcp.NewResource(
|
||||
rURI, rName,
|
||||
mcp.WithMIMEType("application/json"),
|
||||
mcp.WithMIMEType(cmd.JsonMIME),
|
||||
mcp.WithResourceDescription(long),
|
||||
)
|
||||
|
||||
@@ -102,7 +102,7 @@ func resourceHandler(
|
||||
contents := []mcp.ResourceContents{
|
||||
mcp.TextResourceContents{
|
||||
URI: rURI,
|
||||
MIMEType: "application/json",
|
||||
MIMEType: cmd.JsonMIME,
|
||||
Text: writer.String(),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user