Skip to main content
Glama

Keyboard Shortcuts MCP Server

by jenova-marie
handlers.ts•1.01 kB
import type { GetShortcutsParams, DataStore } from './types.js'; import type { OpusClient } from './opus-client.js'; export async function handleGetShortcuts( params: GetShortcutsParams, dataStore: DataStore, opusClient: OpusClient ): Promise<{ content: Array<{ type: string; text: string }> }> { // Filter data based on parameters const relevantData = dataStore.getByFilters({ os: params.os, desktop: params.desktop, application: params.application, }); if (relevantData.length === 0) { return { content: [ { type: 'text', text: `No shortcut data found for: OS=${params.os}${params.desktop ? `, Desktop=${params.desktop}` : ''}${params.application ? `, App=${params.application}` : ''}`, }, ], }; } // Query Opus with filtered data const response = await opusClient.queryShortcuts(params.query, relevantData); return { content: [ { type: 'text', text: response, }, ], }; }

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/jenova-marie/keyboard-shortcuts-mcp'

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