current_technology
Check which Apple technology is currently selected in the Apple Doc MCP server and learn how to switch to different frameworks or APIs for documentation access.
Instructions
Report the currently selected technology and how to change it
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Builds and returns the handler function for the 'current_technology' tool. It checks for an active technology and returns formatted information about it, including name, identifier, and next action suggestions. If no technology is active, it delegates to a no-technology message.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'}], }; }; };
- src/server/tools.ts:63-71 (registration)Registers the 'current_technology' tool in the tool definitions array, specifying its name, description, empty input schema, and the built handler.name: 'current_technology', description: 'Report the currently selected technology and how to change it', inputSchema: { type: 'object', required: [], properties: {}, }, handler: buildCurrentTechnologyHandler(context), },