Skip to main content
Glama

Amazon VPC Lattice MCP Server

by rlymbur
index.ts1.33 kB
#!/usr/bin/env node import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js'; import { tools, handleToolCall } from './tools.js'; class SourceListServer { private server: Server; constructor() { this.server = new Server( { name: 'amazon-vpc-lattice-mcp', version: '0.1.0', }, { capabilities: { tools: {}, }, } ); this.setupToolHandlers(); this.server.onerror = (error) => console.error('[MCP Error]', error); process.on('SIGINT', async () => { await this.server.close(); process.exit(0); }); } private setupToolHandlers() { this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools, })); this.server.setRequestHandler(CallToolRequestSchema, async (request, extra) => { return handleToolCall(request); }); } async run() { const transport = new StdioServerTransport(); await this.server.connect(transport); console.error('Amazon VPC Lattice MCP server running on stdio'); } } const server = new SourceListServer(); server.run().catch(console.error);

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/rlymbur/amazon-vpc-lattice-mcp-server'

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