sarcasm-mcp

HarshitRV/sarcasm-mcp

3.1

If you are the rightful owner of sarcasm-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Sarcasm MCP Server is a Model Context Protocol server that provides sarcastic quotes, integrating with AI agents to deliver witty and sarcastic responses.

Tools
2
Resources
0
Prompts
0

Sarcasm MCP Server

A Model Context Protocol (MCP) server that provides sarcastic quotes. This MCP server integrates with AI agents to deliver witty and sarcastic responses.

šŸš€ Features

  • Get All Sarcastic Quotes: Retrieve all available sarcastic quotes
  • Get Random Sarcastic Quote: Fetch a random sarcastic quote for your enjoyment
  • MCP Integration: Seamlessly integrates with any Model Context Protocol supporting environment

šŸ“‹ Requirements

  • Node.js 18.0 or higher
  • npm or yarn package manager

šŸ”§ Installation

# Clone the repository
git clone https://github.com/yourusername/sarcasm-mcp.git

# Navigate to the project directory
cd sarcasm-mcp

# Install dependencies
npm install

# Build the project
npm run build

🧰 Development

# Install dependencies
npm install

# Build the project
npm run build

Run the mcp in vs code

  • Create mcp.json in your workspace if not already present
mkdir .vscode
touch .vscode/mcp.json
  • Add the following configuration to the mcp.json file
{
    "servers": {
        "sarcasm": {
            "type": "stdio",
            "command": "node",
            "args": [
                "PATH_TO_YOUR_BUILD_DIRECTORY/index.js"
            ]
        }
    }
}

šŸ› ļø Usage

Running MCP Server via NPX

  • Create mcp.json in your workspace if not already present
mkdir .vscode
touch .vscode/mcp.json
  • Add the following configuration to the mcp.json file
{
    "servers": {
        "sarcasm": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "mcp-sarcasm"
            ]
        }
    }
}

Using with GitHub Copilot

This MCP server integrates with GitHub Copilot and other AI assistants that support the Model Context Protocol. When connected, you can use the following tools:

  1. get-all-sarcastic-quotes: Retrieves all available sarcastic quotes
  2. get-random-sarcastic-quote: Gets a random sarcastic quote

Example:

Can you #get-random-sarcastic-quote for me?

šŸ“¦ Package Structure

sarcasm-mcp/
ā”œā”€ā”€ src/
│ ā”œā”€ā”€ index.ts # Main server file
│ ā”œā”€ā”€ constants/ # API constants
│ ā”œā”€ā”€ service/ # Service for fetching quotes
│ └── types/ # TypeScript type definitions
ā”œā”€ā”€ build/ # Compiled JavaScript files
ā”œā”€ā”€ package.json # Project dependencies and scripts
└── README.md # This documentation

šŸ”Œ API Reference

This MCP server uses the following API endpoints:

  • GET /sarcasm/all - Retrieves all sarcastic quotes
  • GET /sarcasm/random - Gets a random sarcastic quote

Responses are returned in the following format:

interface SarcasticQuote {
    id: string;
    sarcasm: string;
    createdAt: string;
    updatedAt: string;
}

šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

šŸ“ License

This project is licensed under the MIT License - see the file for details.