Skip to main content
Glama
steampipe_plugin_list.ts1.35 kB
import type { Tool } from "@modelcontextprotocol/sdk/types.js"; import { logger } from "../services/logger.js"; import { DatabaseService } from "../services/database.js"; export const tool: Tool = { name: "steampipe_plugin_list", description: "List all Steampipe plugins installed on the system. Plugins provide access to different data sources like AWS, GCP, or Azure.", inputSchema: { type: "object", properties: {}, additionalProperties: false }, handler: async (db: DatabaseService) => { if (!db) { return { content: [{ type: "text", text: "Database not available. Please ensure Steampipe is running and try again." }], isError: true }; } try { const query = ` SELECT plugin, version FROM steampipe_plugin ORDER BY plugin `; const result = await db.executeQuery(query); return { content: [{ type: "text", text: JSON.stringify({ plugins: result }) }] }; } catch (err) { logger.error("Error listing plugins:", err); return { content: [{ type: "text", text: `Failed to list plugins: ${err instanceof Error ? err.message : String(err)}` }], isError: true }; } } };

Implementation Reference

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/turbot/steampipe-mcp'

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