Skip to main content
Glama

@pulumi/mcp-server

Official
by pulumi
cmd.ts855 B
import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import { connectStdioTransport } from '../server/stdio/transport.js'; import { startMcpHttpServer } from '../server/http/httpServer.js'; export const cmd = () => { const exe = yargs(hideBin(process.argv)); exe.command( 'stdio', 'Start Pulumi MCP server using stdio transport.', () => {}, () => connectStdioTransport() ); exe.command( 'http', 'Start Pulumi MCP server using Streaming HTTP transport.', (yargs) => { return yargs.option('port', { type: 'number', default: 3000 }); }, ({ port }) => { try { startMcpHttpServer(port); } catch (error) { console.error('Failed to start HTTP server:', error); process.exit(1); } } ); exe.demandCommand().parseSync(); };

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/pulumi/mcp-server'

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