Skip to main content
Glama
tanamurayuuki

Gemini URL Context & Search MCP Server

GoogleSearchUseCase.ts635 B
import { GoogleSearchGenAI, GoogleSearchInput, GoogleSearchResponse } from '../adapter/GoogleSearchGenAI.js'; import { ModelName } from '../domain/ModelName.js'; export class GoogleSearchUseCase { constructor(private readonly googleSearchGenAI: GoogleSearchGenAI) {} async execute( query: string, instruction?: string, model?: ModelName ): Promise<GoogleSearchResponse> { const modelName = model || ModelName.create(); const input: GoogleSearchInput = { query: query.trim(), instruction, model: modelName.toString() }; return await this.googleSearchGenAI.search(input); } }

Implementation Reference

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/tanamurayuuki/MCP-URLcontext'

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