Skip to main content
Glama

Twitter MCP Server

by GenAIwithMS
types.ts•905 B
import { z } from 'zod'; // Tweet posting schemas export const PostTweetSchema = z.object({ text: z.string().max(280), reply_to_tweet_id: z.string().optional(), }); export const PostTweetWithImageSchema = z.object({ text: z.string().max(280), image_path: z.string(), reply_to_tweet_id: z.string().optional(), }); export const SearchTweetsSchema = z.object({ query: z.string(), count: z.number().min(10).max(100), }); // Response schemas export type Tweet = { id: string; text: string; author_id: string; created_at: string; }; export type SearchResponse = { tweets: Tweet[]; meta: { result_count: number; next_token?: string; }; }; // Tool schemas export type PostTweetRequest = z.infer<typeof PostTweetSchema>; export type PostTweetWithImageRequest = z.infer<typeof PostTweetWithImageSchema>; export type SearchTweetsRequest = z.infer<typeof SearchTweetsSchema>;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GenAIwithMS/twitter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server