HarshitRV/sarcasm-mcp
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.
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:
get-all-sarcastic-quotes
: Retrieves all available sarcastic quotesget-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 quotesGET /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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
š License
This project is licensed under the MIT License - see the file for details.