Skip to main content
Glama
current-technology.ts905 B
import type {ServerContext, ToolResponse} from '../context.js'; import {bold, header} from '../markdown.js'; import {buildNoTechnologyMessage} from './no-technology.js'; export const buildCurrentTechnologyHandler = (context: ServerContext) => { const noTechnology = buildNoTechnologyMessage(context); return async (): Promise<ToolResponse> => { const active = context.state.getActiveTechnology(); if (!active) { return noTechnology(); } const lines = [ header(1, '📘 Current Technology'), '', bold('Name', active.title), bold('Identifier', active.identifier), '', header(2, 'Next actions'), '• `search_symbols { "query": "keyword" }` to find symbols', '• `get_documentation { "path": "SymbolName" }` to open docs', '• `choose_technology "Another Framework"` to switch', ]; return { content: [{text: lines.join('\n'), type: 'text'}], }; }; };

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/MightyDillah/apple-doc-mcp'

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