
mcp playground
一个基于 LangChain.js 和 OpenAI GPT-3.5 的简单 AI 笑话生成工具。
Repository Info
About This Server
一个基于 LangChain.js 和 OpenAI GPT-3.5 的简单 AI 笑话生成工具。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
AI Joke Agent
A simple AI-powered joke-telling agent built with LangChain.js and OpenAI's GPT-3.5.
Features
- Tells random, clean jokes
- Can generate specific types of jokes (e.g., dad jokes, puns)
- Structured output with setup, punchline, and category
- Clean and family-friendly content
Setup
- Install dependencies:
npm install
- Create a
.envfile in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
- Run the example:
npx ts-node src/example.ts
Usage
import { JokeAgent } from './jokeAgent';
// Create a new joke agent
const jokeAgent = new JokeAgent(process.env.OPENAI_API_KEY!);
// Get a random joke
const randomJoke = await jokeAgent.tellJoke();
console.log(randomJoke);
// Get a specific type of joke
const dadJoke = await jokeAgent.tellJoke("dad joke");
console.log(dadJoke);
Response Format
The jokes are returned in the following format:
{
setup: string; // The setup line of the joke
punchline: string; // The punchline that makes the joke funny
category: string; // The category or type of joke
}
Requirements
- Node.js 14+
- OpenAI API key
- TypeScript
Quick Start
Clone the repository
git clone https://github.com/designlogic/mcp-playgroundInstall dependencies
cd mcp-playground
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.