Skip to main content
Glama

jenkins_submit_input_action

Submit input actions like approve or reject to Jenkins CI/CD pipelines using decision URLs, enabling automated workflow control.

Instructions

Enviar una acción de input a Jenkins (aprobar/rechazar)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
decisionUrlYesURL de la decisión (proceedUrl o abortUrl)

Implementation Reference

  • Core handler logic: Performs POST request to the provided decisionUrl (proceedUrl or abortUrl) to submit the input action to Jenkins.
    async submitInputAction(decisionUrl: string): Promise<string> { try { await this.client.post(decisionUrl); return 'Action submitted successfully'; } catch (error: any) { throw handleHttpError(error, `Failed to submit input action to URL: ${decisionUrl}`); } }
  • index.ts:231-250 (registration)
    MCP tool registration including schema (decisionUrl input) and thin wrapper handler delegating to JenkinsService.submitInputAction.
    server.tool( "jenkins_submit_input_action", "Enviar una acción de input a Jenkins (aprobar/rechazar)", { decisionUrl: z.string().describe("URL de la decisión (proceedUrl o abortUrl)") }, async (args) => { try { const result = await getJenkinsService().submitInputAction(args.decisionUrl); return { content: [{ type: "text", text: `✅ **${result}**` }], }; } catch (error: any) { return { content: [{ type: "text", text: `❌ **Error:** ${error.message}` }], }; } } );
  • Zod schema defining the input parameter for the tool.
    { decisionUrl: z.string().describe("URL de la decisión (proceedUrl o abortUrl)") },

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/gcorroto/mcp-jenkins'

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