Skip to main content
Glama

DevDb MCP Server

document-service.ts424 B
import * as vscode from 'vscode'; /** * Gets the word under the cursor in the * current document */ export function getWordUnderCursor(): string | undefined { const editor = vscode.window.activeTextEditor; if (!editor) return; const document = editor.document; const cursorPosition = editor.selection.active; const wordRange = document.getWordRangeAtPosition(cursorPosition); return document.getText(wordRange) }

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/damms005/devdb-vscode'

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