Agent Never Give Up logo

Agent Never Give Up

Organization
askman-dev

A 'Swiss Army knife' toolset to help agents recover from getting stuck

Publisheraskman-dev
Repositoryagent-never-give-up-mcp
LanguageTypeScript
Forks
2
Stars
5
Available tools
9
Transport typestreamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Agent Never Give Up exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 9 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    5 stars and 2 forks from the linked repository.

Agent Never Give Up MCP

This is a MCP server that acts as a "escape guide" for AI coding agents.

It provides structured thinking protocols to help agents unstuck themselves without human help.

The diagram below illustrates when an agent should call this server and what it receives in return:

Features

  • Remote MCP server at /mcp endpoint (Streamable HTTP specification compliant)
  • Two-tier scenario organization:
    • Core scenarios (auto-registered as direct MCP tools):
      • logic-is-too-complex – for circular reasoning or over-complicated logic
      • bug-fix-always-failed – for repeated failed bug fix attempts
      • missing-requirements – for unclear or missing requirements
      • lost-main-objective – for when current actions feel disconnected from the original goal
      • scope-creep-during-task – for when changes expand beyond the original task scope
      • long-goal-partially-done – for multi-step tasks where remaining work is forgotten
      • strategy-not-working – for when the same approach fails repeatedly
    • Extended scenarios (discovered via list_scenarios, accessed via get_prompt):
      • analysis-too-long – for excessive analysis time
      • unclear-acceptance-criteria – for undefined acceptance criteria
      • wrong-level-of-detail – for working at wrong abstraction level
      • constraints-cant-all-be-met – for conflicting requirements or constraints
      • blocked-by-environment-limits – for environmental blockers vs logic problems
  • Discovery tools:
    • list_scenarios – list all scenarios with their tier (core/extended)
    • get_prompt – access any scenario (core or extended)
  • Dual mode support: Each tool supports static and sampling modes
  • Community-contributed prompts via markdown files
  • Public and auth-less (v0)
  • Cloudflare Workers deployment

Configuration

Since agent-never-give-up is a cloud-hosted MCP server, no local installation is required. Simply add the server configuration to your preferred AI tool.

Install in Cursor

  1. Open Cursor Settings > MCP.
  2. Click + Add new global MCP server.
  3. Use the following configuration (or edit your ~/.cursor/mcp.json file directly):
json
{
  "mcpServers": {
    "agent-never-give-up": {
      "type": "http",
      "url": "https://agent-never-give-up-mcp.askman.dev/mcp",
      "note": "A 'Swiss Army knife' toolset to help agents recover from getting stuck"
    }
  }
}

Install in Claude Desktop

To configure the server for Claude Desktop, edit the configuration file located at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following entry to the mcpServers object:

json
{
  "mcpServers": {
    "agent-never-give-up": {
      "type": "http",
      "url": "https://agent-never-give-up-mcp.askman.dev/mcp"
    }
  }
}

Install in Cline

  1. Open Cline and click the MCP Servers icon (☰).
  2. Select the Remote Servers tab (if available) or click Configure MCP Servers.
  3. Edit the cline_mcp_settings.json file to include:
json
{
  "mcpServers": {
    "agent-never-give-up": {
      "type": "http",
      "url": "https://agent-never-give-up-mcp.askman.dev/mcp",
      "note": "A comprehensive suite of tools designed to keep agents persistent and unstuck"
    }
  }
}

Install in Windsurf

  1. Open Windsurf.
  2. Go to File > Settings > Configure MCP Servers (or edit ~/.codeium/windsurf/mcp_config.json).
  3. Add the server configuration:
json
{
  "mcpServers": {
    "agent-never-give-up": {
      "type": "http",
      "url": "https://agent-never-give-up-mcp.askman.dev/mcp"
    }
  }
}

Development

To contribute to this project or run a local instance:

bash
# Install dependencies
npm install

The local server will be available at http://localhost:8787/mcp.

Contributing Prompts

Prompts are organized in two tiers within the prompts/ directory:

prompts/
├── core/                           # Core scenarios (auto-registered as tools)
│   ├── logic-is-too-complex/
│   │   └── tool.md
│   ├── bug-fix-always-failed/
│   │   └── tool.md
│   └── missing-requirements/
│       └── tool.md
└── extended/                       # Extended scenarios (via list_scenarios + get_prompt)
    ├── analysis-too-long/
    │   └── tool.md
    └── unclear-acceptance-criteria/
        └── tool.md

Prompt File Format

Each tool.md file follows a simple markdown format with YAML frontmatter and a single protocol body:

markdown
---
name: scenario_name
title: "Scenario Title"
description: "When / why the agent should call this tool, from the agent's perspective"
---

When you notice [the trigger condition], follow this exact protocol step by step.

## 1. First step title

1. Action item one.
2. Action item two.
3. Action item three.

Keep it concrete.

## 2. Second step title

...

## 3. Third step title

...

Key principles:

  • The description explains when to use the tool (the trigger condition)
  • The body is a single protocol with numbered sections
  • Each section has 2–6 concrete steps
  • Focus on how to think, not domain-specific details
  • No system prompt / user prompt template sections—just one actionable protocol

See prompts/AGENTS.md for detailed guidance on writing effective prompts.

Adding a New Scenario

Scenarios are auto-discovered from the prompts/ tree and the generated files in src/prompts/generated-scenarios.ts and src/types/generated-scenarios.ts. You do not need to manually edit TypeScript files—just add the prompt and regenerate.

Core scenarios (auto-registered as tools):

  1. Create a new directory: prompts/core/{scenario_name}/ (must match /^[a-z0-9]+(-[a-z0-9]+)*$/).
  2. Add a tool.md file following the format above.
  3. Run npm run generate:scenarios to regenerate types and discovery data.

Extended scenarios (accessible via get_prompt):

  1. Create a new directory: prompts/extended/{scenario_name}/ (same naming rules as above).
  2. Add a tool.md file following the format above.
  3. Run npm run generate:scenarios to regenerate types and discovery data.

Deploy

bash
# Deploy to Cloudflare Workers
npm run deploy

After deployment, your MCP endpoint will be: https://agent-never-give-up-mcp.<account>.workers.dev/mcp

License

MIT

Installation

TypingMind
{
  "mcpServers": {
    "agent-never-give-up": {
      "url": "https://agent-never-give-up-mcp.askman.dev/mcp",
      "env": null
    }
  }
}

Available Tools

  • list_scenarios

    List all available stuck-agent scenarios with their tier (core/extended). Core scenarios are also directly available as individual tools.

  • bug-fix-always-failed

    Use this when your bug fix attempts keep failing, and you need to break out of the loop with a fresh debugging strategy.

  • logic-is-too-complex

    Use this when your reasoning is getting long, tangled, or circular, and you need a simple, structured way to reset and move forward.

  • long-goal-partially-done

    Use this when working on a multi-step task and you have only completed part of it, risking that remaining steps are forgotten.

  • lost-main-objective

    Use this when you remember the original goal but your current actions feel disconnected from it, and you need to realign your work with the main objective.

  • missing-requirements

    Use this when you cannot proceed because requirements are missing or unclear, and you need to identify what information is needed.

  • scope-creep-during-task

    Use this when your changes are expanding beyond the original task scope, and you need to refocus on what was actually requested.

  • strategy-not-working

    Use this when you have tried the same approach multiple times without success, and you need to step back and consider a fundamentally different strategy.

  • get_prompt

    Get prompt template for any scenario (core or extended) with optional mode. Use list_scenarios to discover available scenario IDs.

Use Agent Never Give Up MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Agent Never Give Up is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP connects through a hosted MCP server URL in TypingMind.

Add an MCP server URL

Use this when Agent Never Give Up is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter https://agent-never-give-up-mcp.askman.dev/mcp in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste https://agent-never-give-up-mcp.askman.dev/mcp into the Server URL field.
  2. Enter a connection name for Agent Never Give Up.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Agent Never Give Up connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Agent Never Give Up tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Agent Never Give Up tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Agent Never Give Up to help me with this task?
Agent Never Give Up
Sure. I read it.
Here is what I found using Agent Never Give Up.

Frequently asked questions

What is the Agent Never Give Up MCP server used for?

Agent Never Give Up is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Agent Never Give Up MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Agent Never Give Up with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Agent Never Give Up MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Agent Never Give Up connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Agent Never Give Up MCP to TypingMind?

Agent Never Give Up can be connected in TypingMind by adding its hosted MCP server URL. This is useful when you want a remote MCP connection that is available from your TypingMind workspace.

What tools does Agent Never Give Up MCP provide in TypingMind?

Agent Never Give Up exposes 9 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Agent Never Give Up MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Agent Never Give Up requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇