Skip to main content
Glama

TianGong-LCA-MCP Server

by linancn
init_server_http.ts995 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { regCrudTool } from '../tools/db_crud.js'; import { regFlowSearchTool } from '../tools/flow_hybrid_search.js'; import { regLifecycleModelSearchTool } from '../tools/life_cycle_model_hybrid_search.js'; import { regProcessSearchTool } from '../tools/process_hybrid_search.js'; import { SupabaseSessionPayload } from './auth_middleware.js'; export function initializeServer( bearerKey?: string, supabaseSession?: SupabaseSessionPayload, ): McpServer { const server = new McpServer({ name: 'TianGong-LCA-MCP-Server', version: '1.0.0', }); regFlowSearchTool(server, bearerKey); regProcessSearchTool(server, bearerKey); regLifecycleModelSearchTool(server, bearerKey); regCrudTool(server, supabaseSession ?? bearerKey); return server; } export function getServer(bearerKey?: string, supabaseSession?: SupabaseSessionPayload): McpServer { return initializeServer(bearerKey, supabaseSession); }

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/linancn/tiangong-lca-mcp'

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