Skip to main content
Glama
jakedx6
by jakedx6

get_workspace_context

Retrieve complete workspace hierarchy and insights for project management, enabling AI agents to understand and navigate project structures through the Helios-9 MCP Server.

Instructions

Get complete workspace hierarchy and insights

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_workspace_context' tool. It requires authentication, logs the request, fetches the workspace context using supabaseService (API client), and returns the context wrapped in an object.
    export const getWorkspaceContext = requireAuth(async (args: any) => { logger.info('Getting workspace context') const context = await supabaseService.getWorkspaceContext() return { context } })
  • The tool schema definition including the exact name 'get_workspace_context', description, and input schema (empty object since no parameters are required). This is used in tool listing.
    export const getWorkspaceContextTool: MCPTool = { name: 'get_workspace_context', description: 'Get complete workspace hierarchy and insights', inputSchema: { type: 'object', properties: {} } }
  • Local registration mapping the tool name 'get_workspace_context' to its handler function getWorkspaceContext. This object is imported and spread into the central handlers registry.
    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/index.ts:143-155 (registration)
    Central MCP server registration where initiativeHandlers (including get_workspace_context) is spread into the master allHandlers object used by the MCP Server to dispatch tool calls.
    this.allHandlers = { ...projectHandlers, ...taskHandlers, ...documentHandlers, ...conversationHandlers, ...contextAggregationHandlers, ...workflowAutomationHandlers, ...intelligentSearchHandlers, ...analyticsInsightsHandlers, ...initiativeHandlers, ...promptToProjectTools.reduce((acc, tool) => ({ ...acc, [tool.name]: tool.handler }), {}), ...debugHandlers, }
  • Supporting API client method (supabaseService.getWorkspaceContext) that makes the actual HTTP request to the Helios API endpoint '/api/mcp/workspace/context' to retrieve the workspace context data.
    async getWorkspaceContext(): Promise<any> { const response = await this.request<{ context: any }>('/api/mcp/workspace/context') return response.context }

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/jakedx6/helios9-MCP-Server'

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