Skip to main content
Glama
mattyatea

Git Conflict MCP

by mattyatea

post_resolve

Confirm Git merge conflict resolution before proceeding with the resolve_conflict tool to ensure safe conflict handling.

Instructions

Execute this tool BEFORE running resolve_conflict to confirm the resolution process. This acts as a safety confirmation step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execution handler for the 'post_resolve' tool. Returns a markdown/text content prompting the user for confirmation before proceeding with conflict resolution.
    async () => {
        return {
            content: [{
                type: "text",
                text: "Are you sure you have resolved the conflict correctly? Please check again."
            }]
        };
    }
  • Configuration object defining the tool's description and input schema (empty object, no parameters required).
    {
        description: "Execute this tool BEFORE running resolve_conflict to confirm the resolution process. This acts as a safety confirmation step.",
        inputSchema: z.object({}),
    },
  • Registers the 'post_resolve' tool with the MCP server using server.registerTool, including name, config, and handler.
    export function registerPostResolve(server: McpServer) {
        server.registerTool(
            "post_resolve",
            {
                description: "Execute this tool BEFORE running resolve_conflict to confirm the resolution process. This acts as a safety confirmation step.",
                inputSchema: z.object({}),
            },
            async () => {
                return {
                    content: [{
                        type: "text",
                        text: "Are you sure you have resolved the conflict correctly? Please check again."
                    }]
                };
            }
        );
    }
  • Calls registerPostResolve to include the 'post_resolve' tool in the overall tool registration during non-review mode setup.
    registerPostResolve(server);

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/mattyatea/git-conflict-mcp'

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