get_plugin_metadata
Retrieve metadata for a specific plugin from the APISIX-MCP server to enable plugin integration via the APISIX Admin API.
Instructions
Get metadata for a specific plugin
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | plugins name |
Implementation Reference
- src/tools/plugin.ts:34-36 (handler)The registration and inline handler function for the 'get_plugin_metadata' MCP tool. It takes a 'name' argument and calls makeAdminAPIRequest to retrieve metadata from `/plugin_metadata/${args.name}`.server.tool("get_plugin_metadata", "Get metadata for a specific plugin", GetPluginMetadataSchema.shape, async (args) => { return await makeAdminAPIRequest(`/plugin_metadata/${args.name}`); });
- src/schemas/plugin.ts:15-17 (schema)Zod schema defining the input parameters for the 'get_plugin_metadata' tool, requiring a 'name' string.export const GetPluginMetadataSchema = z.object({ name: z.string().describe("plugins name"), });