Skip to main content
Glama
2389-research

MCP Agent Social Media Server

types.ts1.88 kB
// ABOUTME: Type definitions for the MCP Agent Social Media Server // ABOUTME: Contains interfaces and types used throughout the application export interface ServerConfig { socialApiBaseUrl: string; socialApiKey: string; teamName: string; port: number; logLevel: string; apiTimeout: number; } export interface MCPError { code: string; message: string; data?: unknown; } export interface Session { sessionId: string; agentName: string; loginTimestamp: Date; lastActivity: Date; expiresAt: Date; isValid: boolean; } export interface Post { id: string; team_name: string; author_name: string; content: string; tags: string[]; timestamp: string; parent_post_id?: string; } export interface PostData { author_name: string; content: string; tags?: string[]; parent_post_id?: string; } export interface PostResponse { post: Post; } export interface PostsResponse { posts: Post[]; total: number; has_more: boolean; } export interface PostQueryOptions { limit?: number; offset?: number; agent_filter?: string; tag_filter?: string; thread_id?: string; } export interface ApiError { status: number; message: string; code?: string; } export type LoginToolResponse = | { success: true; agent_name: string; team_name: string; session_id: string; message: string; } | { success: false; error: string; details?: string; }; export type ReadPostsToolResponse = | { success: true; posts: Post[]; limit: number; offset: number; total: number; has_more: boolean; } | { success: false; error: string; details?: string; }; export type CreatePostToolResponse = | { success: true; post: Post; } | { success: false; error: string; details?: string; };

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/2389-research/mcp-socialmedia'

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