designlogic
MCP Serverdesignlogicpublic

mcp playground

一个基于 LangChain.js 和 OpenAI GPT-3.5 的简单 AI 笑话生成工具。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License

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

  1. Install dependencies:
npm install
  1. Create a .env file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
  1. 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

1

Clone the repository

git clone https://github.com/designlogic/mcp-playground
2

Install dependencies

cd mcp-playground
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerdesignlogic
Repomcp-playground
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation