Skip to main content
Glama

Gemini MCP Server

by dakrin
types.ts1.32 kB
// Basic types for the MCP server export interface Content { type: string; text: string; } export interface GenerationResult { content: Content[]; isError?: boolean; } export interface GenerationParams { prompt: string; temperature?: number; maxTokens?: number; safeMode?: boolean; useSearch?: boolean; } export interface RequestBody { contents: Array<{ role: string; parts: Array<{ text: string; }>; }>; generationConfig: { temperature: number; topP: number; topK: number; maxOutputTokens: number; }; tools?: Array<{ googleSearch?: Record<string, unknown>; }>; } // Basic notification types export interface NotificationMessage { jsonrpc: '2.0'; method: string; params?: any; } export interface ErrorNotification extends NotificationMessage { method: 'notifications/error'; params: { code: number; message: string; data?: any; }; } export interface ProgressParams { progressToken: string | number; progress: number; total?: number; } export interface ProgressNotification extends NotificationMessage { method: 'notifications/progress'; params: ProgressParams; } export interface ShutdownRequest { method: 'shutdown'; } export interface ExitNotification extends NotificationMessage { method: 'exit'; }

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/dakrin/mcp-gemini-server'

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