@usethoth/mcp-server
Version:
Model Context Protocol server for Thoth content creation platform
28 lines • 931 B
TypeScript
import { z } from 'zod';
import { PaginatedPostsResponse } from '../types.js';
/**
* Zod schema for get-all-posts tool input
*/
export declare const getAllPostsInputSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
status: z.ZodOptional<z.ZodEnum<{
draft: "draft";
scheduled: "scheduled";
published: "published";
archived: "archived";
}>>;
}, z.core.$strip>;
export type GetAllPostsInput = z.infer<typeof getAllPostsInputSchema>;
/**
* Get all posts via the Thoth API
*/
export declare function getAllPosts(params: GetAllPostsInput, config: {
apiKey: string;
baseUrl: string;
}): Promise<PaginatedPostsResponse>;
/**
* Format the get-all-posts response for MCP
*/
export declare function formatGetAllPostsResponse(response: PaginatedPostsResponse): string;
//# sourceMappingURL=get-all-posts.d.ts.map