get_workspace_context
Retrieve complete workspace hierarchy and insights from the Helios-9 MCP Server to understand project structures and relationships.
Instructions
Get complete workspace hierarchy and insights
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/initiatives.ts:517-523 (handler)The main handler function for the 'get_workspace_context' MCP tool. It logs the request, calls the supabaseService to fetch workspace context, and returns it wrapped in a 'context' object.export const getWorkspaceContext = requireAuth(async (args: any) => { logger.info('Getting workspace context') const context = await supabaseService.getWorkspaceContext() return { context } })
- src/tools/initiatives.ts:508-515 (schema)The MCPTool schema definition for 'get_workspace_context', specifying the tool name, description, and empty input schema (no parameters required).export const getWorkspaceContextTool: MCPTool = { name: 'get_workspace_context', description: 'Get complete workspace hierarchy and insights', inputSchema: { type: 'object', properties: {} } }
- src/tools/initiatives.ts:630-642 (registration)Registration of the 'get_workspace_context' handler within the initiativeHandlers object, mapping the tool name to its handler function.export const initiativeHandlers = { list_initiatives: listInitiatives, get_initiative: getInitiative, create_initiative: createInitiative, update_initiative: updateInitiative, get_initiative_context: getInitiativeContext, get_initiative_insights: getInitiativeInsights, search_workspace: searchWorkspace, get_enhanced_project_context: getEnhancedProjectContext, get_workspace_context: getWorkspaceContext, associate_document_with_initiative: associateDocumentWithInitiative, disassociate_document_from_initiative: disassociateDocumentFromInitiative }
- src/lib/api-client.ts:598-601 (helper)Underlying helper method in the ApiClient (supabaseService) that makes the API request to fetch workspace context from '/api/mcp/workspace/context'.async getWorkspaceContext(): Promise<any> { const response = await this.request<{ context: any }>('/api/mcp/workspace/context') return response.context }
- src/tools/initiatives.ts:616-628 (registration)Export of the getWorkspaceContextTool as part of the initiativeTools collection, used for tool registration.export const initiativeTools = { listInitiativesTool, getInitiativeTool, createInitiativeTool, updateInitiativeTool, getInitiativeContextTool, getInitiativeInsightsTool, searchWorkspaceTool, getEnhancedProjectContextTool, getWorkspaceContextTool, associateDocumentWithInitiativeTool, disassociateDocumentFromInitiativeTool }