Skip to main content
Glama
jakedx6

Helios-9 MCP Server

by jakedx6

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }
    })
  • 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: {}
      }
    }
  • 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
    }
  • 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
    }
  • 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
    }

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