github_secrets_delete
Remove GitHub Actions secrets to manage sensitive data in CI/CD pipelines and maintain repository security.
Instructions
Delete a GitHub Actions secret
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:1966-1995 (registration)Exact registration of the 'github_secrets_delete' MCP tool. Includes inline JSON schema for parameters (name, repo, env) and the async handler function that constructs and executes the 'gh secret delete' command using the shared runCommand helper."github_secrets_delete", "Delete a GitHub Actions secret", { name: { type: "string", description: "Secret name to delete" }, repo: { type: "string", description: "Repository (owner/repo format)", default: "" }, env: { type: "string", description: "Environment name (optional)", default: "" } }, async ({ name, repo, env }) => { const repoFlag = repo ? `-R ${repo}` : ""; const envFlag = env ? `--env ${env}` : ""; const result = await runCommand(`gh secret delete ${name} ${repoFlag} ${envFlag}`); if (!result.success) { return { content: [{ type: "text", text: `Failed to delete secret!\n\nError: ${result.stderr || result.error}` }] }; } return { content: [{ type: "text", text: `Secret "${name}" deleted successfully.` }] }; } );