Skip to main content
Glama

Nexar MCP Server

by phuhduong
server.ts811 B
/** * Server instance creation */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { NexarClient } from './client.js'; import { registerNexarTools } from './tools/index.js'; export class NexarServer { private server: McpServer; private nexarClient: NexarClient; constructor(clientId: string, clientSecret: string) { this.nexarClient = new NexarClient(clientId, clientSecret); this.server = new McpServer( { name: 'nexar-mcp', version: '0.1.0', }, { capabilities: { tools: {}, }, } ); // Register tools registerNexarTools(this.server, this.nexarClient); console.log('Nexar MCP Server initialized with tools registered'); } getServer(): McpServer { return this.server; } }

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/phuhduong/nexar-mcp'

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