feat: public API, SEO and existing surfaces
This commit is contained in:
1 parent
45fbbc33b1
commit
c390fcfe8d
103 files changed
+4476
-231
No files matched your search
@@ -41,6 +41,7 @@ type listArticlesInput struct {
|
||||
Sort string `json:"sort,omitempty" jsonschema:"field:direction, e.g. title:asc or updated_at:desc"`
|
||||
Site string `json:"site,omitempty" jsonschema:"site key"`
|
||||
SEO string `json:"seo,omitempty" jsonschema:"ready, suggestions or hidden"`
|
||||
Lang string `json:"lang,omitempty" jsonschema:"language tag of the versions to list, e.g. en or pt-BR"`
|
||||
Format string `json:"format,omitempty" jsonschema:"body format: markdown, html or json"`
|
||||
}
|
||||
|
||||
@@ -50,7 +51,7 @@ type getArticleInput struct {
|
||||
}
|
||||
|
||||
type createArticleInput struct {
|
||||
Title string `json:"title" jsonschema:"3 to 200 characters, cannot be changed later"`
|
||||
Title string `json:"title" jsonschema:"3 to 200 characters"`
|
||||
Body string `json:"body" jsonschema:"HTML body"`
|
||||
}
|
||||
|
||||
@@ -180,6 +181,7 @@ func (s *server) listArticles(ctx context.Context, _ *mcp.CallToolRequest, in li
|
||||
textQuery(query, "sort", in.Sort)
|
||||
textQuery(query, "site", in.Site)
|
||||
textQuery(query, "seo", in.SEO)
|
||||
textQuery(query, "lang", in.Lang)
|
||||
textQuery(query, "format", in.Format)
|
||||
return s.call(ctx, http.MethodGet, "/v1/article/", query, nil)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user