
Jokesmcp
Implementación de TypeScript del servidor Jokes MCP
3 years
Works with Finder
1
Github Watches
0
Github Forks
1
Github Stars
Microsoft Copilot Studio ❤️ MCP
Welcome to the Microsoft Copilot Studio ❤️ MCP lab. In this lab, you will learn how to deploy an MCP Server, and how to add it to Microsoft Copilot Studio.
What is MCP?
Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs, defined by Anthropic. MCP provides a standardized way to connect AI models to different data sources and tools. MCP allows makers to seamlessly integrate existing knowledge servers and APIs directly into Copilot Studio.
Currently, Copilot Studio only supports Tools. To learn more about current capabilities, see aka.ms/mcsmcp.
MCP vs Connectors
When do you use MCP? And when do you use connectors? Will MCP replace connectors?
MCP servers are made available to Copilot Studio using connector infrastructure, so these questions are not really applicable. The fact that MCP servers use the connector infrastructure means they can employ enterprise security and governance controls such as Virtual Network integration, Data Loss Prevention controls, multiple authentication methods—all of which are available in this release—while supporting real-time data access for AI-powered agents.
So, MCP and connectors are really better together.
Prerequisites
-
Azure Subscription (with payment method added)
-
Have a GitHub account and be logged in
-
Copilot Studio trial or developer account
-
Power Platform Environment provisioned with the following toggle on:
Lab
To be able to deploy this MCP Server and use it in Microsoft Copilot Studio, you need to go through the following actions:
- Create a new GitHub repository based on the template
- Deploy the Azure Web App
- Create the Power Platform Connector
- Add the MCP Server as an action in Microsoft Copilot Studio
Create a new GitHub repository based on the template
-
Select
Use this template
-
Select `Create a new repository
-
Select the right
Owner
-
Give it a
Repository name
-
Optionally you can give it a
Description
-
Select
Private
-
Select
Create repository
This will take a little while. After it's done, you will be directed to the newly created repository.
[!WARNING]
After completing the steps in this lab, you will have an MCP Server running on Azure that is publicly available. Ideally, you don't want that. Make sure to delete the Azure Web App after finishing the lab.
Deploy the Azure Web App
-
Go to
portal.azure.com
-
Hover over the
Resource groups
tab and selectCreate
-
Click the
Subscription
dropdown and select your subscription from the list -
Click in the
Resource group
name text box and type a resource group name such as "jokesgrp" -
Select the
Region
dropdown choose the region closest to you -
Click
Review + create
-
Click
Create
-
Select
Go to resource group
-
Select
Create
-
Click into the
search box
-
Type
web app
-
Select the
Create button
in the Web App search result -
Select
Web App
-
Select the
Name
text input and put in a name for the web app, such as "wegotjokes" -
Select the
Runtime stack
dropdown and chooseNode 22 LTS
-
Select the
Region
dropdown and choose the region closest to you -
Click
Review + create
-
Click
Create
-
Click
Refresh
to update your deployment progress -
Once deployment is complete, select
Go to resource
-
Expand the
Deployment
tab -
Click
Deployment Center
-
Click the
Source
dropdown and selectGitHub
-
Select
Authorize
-
Select
Continue
-
Select
Authorize AzureAppService
-
Click the
Organization
dropdown and choose your organization -
Click on the
Repository
dropdown and choose the GitHub repository you created earlier from the list -
Click the
Branch
dropdown and choose your branch -
Keep everything else default and select
Save
-
Click
Refresh
to update the deployment status -
Verify that the deployment is complete
Create the Power Platform Connector
-
Replace the
host
in the below OpenAPI v2 spec with the host of your web API -
Select
More
in the left menu -
Select the
Discover all
button -
Under Data, select the
pin icon
next toCustom connectors
to pin it to the left menu -
Select
Custom connectors
in the left menu -
Select
New custom connector
-
Select
Create from blank
-
Give the connector a name (for instance
JokesMCP
) -
Select the blue
Continue
button -
Select the
Swagger editor
toggle -
Copy the yaml code from here and replace the code in the Swagger editor
-
In the Swagger editor, replace
dummyurl.azurewebsites.net
with the URL of the web app you created earlier. Make sure to removehttps://
and everything afterazurewebsites.net
-
Select
Create connector
to create the connector
Add the MCP Server as an action in Microsoft Copilot Studio
Now you have an MCP Server running in Azure, and a connector available in the Power Platform. This step is about creating an agent in Microsoft Copilot Studio and adding the MCP Server to the agent.
-
Select the environment picker at the top right corner
-
Select the right environment (this environment needs to have the
Get new features early
toggle on)This will change the URL to
https://copilotstudio.preview.microsoft.com/....
which indicates you're on the right environment -
Select
Create
in the left navigation -
Select the blue
New agent
button -
Select
Skip to configure
on the top right -
Change the name to
Jokester
-
Add the following
Description
A humor-focused agent that delivers concise, engaging jokes only upon user request, adapting its style to match the user's tone and preferences. It remains in character, avoids repetition, and filters out offensive content to ensure a consistently appropriate and witty experience.
-
Add the following
Instructions
You are a joke-telling assistant. Your sole purpose is to deliver appropriate, clever, and engaging jokes upon request. Follow these rules: * Respond only when the user asks for a joke or something related (e.g., "Tell me something funny"). * Match the tone and humor preference of the user based on their input—clean, dark, dry, pun-based, dad jokes, etc. * Never break character or provide information unrelated to humor. * Keep jokes concise and clearly formatted. * Avoid offensive, discriminatory, or NSFW content. * When unsure about humor preference, default to a clever and universally appropriate joke. * Do not repeat jokes within the same session. * Avoid explaining the joke unless explicitly asked. * Be responsive, witty, and quick.
-
Select
Create
on the top right -
Enable Generative AI
Orchestration
-
Disable general knowledge in the
Knowledge
section -
Select
Actions
in the top menu -
Select
Add an action
-
Search for the name (in this case,
jokes
) of the connector you created earlier (see number 1 in the screenshot below) -
Select the
Jokes MCP server
(see number 2 in the screenshot below) -
Wait for the connection to be created and select
Next
when it's done -
Change the
Description for the agent to know when to use this action
to the following text:Trigger this action when a user asks for a joke. It can provide Chuck Norris jokes, Dad jokes and Yo Mama jokes.
Leave the rest as default, like for instance end user authentication, where you will learn more about in a minute.
-
Select
Add action
to add the action to the agent -
Select the
refresh icon
in theTest your agent
pane -
In the
Test your agent
pane send the following message:Can I get a Chuck Norris joke?
This will show you message that additional permissions are required to run this action. This is because of the user authentication in the action wizard.
-
Select
Connect
This will open a new window where you can manage your connections for this agent.
-
Select
Connect
next to theJokesMCP
-
Wait until the connection is created and select
Submit
-
The connection should now be connected, so the status should be set to
Connected
-
Close the manage your connections tab in your browser
Now you should be back in the Jokester agent screen.
-
Select the
refresh icon
in theTest your agent
pane -
In the
Test your agent
pane send the following message:Can I get a Chuck Norris joke?
This will now show a Chuck Norris joke - instead of the additional permissions.
-
In the
Test your agent
pane send the following message:Can I get a Dad joke?
This will now show a Dad joke.
-
In the
Test your agent
pane send the following message:Can I get a Yo Mama joke?
This will now show a Yo Mama joke.
And that was the Jokes MCP Server working in Microsoft Copilot Studio. This is also the end of the lab! Hopefully you liked the lab. Please take the time to fill in our feedback form.
Jokes MCP Server details
This is a MCP server built on the TypeScript SDK.
With this MCP Server, you will able to fetch jokes from the following websites:
Tools
The following tools are included:
get-chuck-joke
This tool retrieves a random Chuck Norris Joke from chucknorris.io.
get-chuck-categories
This tool retrieves the available categories from chucknorris.io.
get-dad-joke
This tool retrieves a random Dad Joke from icanhazdadjoke.com.
get-yo-mama-joke
This tool retrieves a random Yo Mama Joke from yomama-jokes.com.
相关推荐
🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.
⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
Traducción de papel científico en PDF con formatos preservados - 基于 Ai 完整保留排版的 PDF 文档全文双语翻译 , 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 等服务 等服务 等服务 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 cli/mcp/docker/zotero
Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack
Una puerta de enlace basada en complementos que orquesta otros MCP y permite a los desarrolladores construir sobre agentes de grado empresarial de TI.
Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.
Reviews

user_HgzTvjWb
As a dedicated user of JokesMCP by Laskewitz, I must say this app is a one-of-a-kind gem! It offers a seamless, user-friendly interface and a daily dose of humor that never fails to brighten my day. The jokes are witty and well-curated, making it a delightful experience every time I open the app. Highly recommend it to anyone looking to add some laughter to their routine!

user_thDRvNox
As a dedicated user of JokesMCP by Laskewitz, I must say this product has been a fantastic addition to my daily routine. It's incredibly easy to access and navigate, making sure I start my day with a smile. If you're looking for a light-hearted way to lift your spirits, JokesMCP is definitely worth checking out!

user_5awHzAx7
As a loyal user of JokesMCP by Laskewitz, I must say this application never fails to make my day brighter. The humor is top-notch, and the delivery is impeccable. It's an absolute must-have for anyone who enjoys a good laugh and needs a quick mood booster. Highly recommended!

user_vMoCrD0n
As a loyal MCP application user, I must say JokesMCP by Laskewitz is a fantastic addition to my daily routine. The interface is simple and user-friendly while the jokes are genuinely hilarious and diverse. The ease of use and regular updates make it a must-have for anyone who loves a good laugh. Highly recommend!

user_yD4Ytq6W
As a longtime fan of MCP applications, I found JokesMCP by Laskewitz to be absolutely delightful! The humor embedded in this app is top-notch, offering a perfect blend of wit and cleverness that keeps me laughing throughout the day. It's a refreshing escape from the mundane, and I think anyone looking for a good laugh will find it truly enjoyable.

user_9kSMj4T0
As a loyal user of JokesMCP by Laskewitz, I can confidently say that it's one of the best joke applications I've ever used. The user interface is simple, and the jokes are consistently hilarious. It’s the perfect app to brighten up your day with a quick laugh. Highly recommended for anyone looking to add some humor to their daily routine!

user_Ra4PQT8g
As a dedicated user of JokesMCP, I must say that it has quickly become my go-to for a daily dose of humor. The jokes are consistently fresh and entertaining, making each visit to the app a delightful experience. Kudos to Laskewitz for creating such a fun and engaging platform!

user_U1aNCpAu
JokesMCP by Laskewitz is an absolute delight! This app offers a treasure trove of jokes that brighten up my day. The user interface is clean, and the jokes are categorized seamlessly, making it easy to find exactly what you need. Whether you’re in need of a quick laugh or a conversation starter, JokesMCP never disappoints. Highly recommend to anyone looking to add a bit of humor to their daily routine!

user_wBYIGfOo
As a loyal user of JokesMCP, I find it to be an incredibly entertaining and unique application. Created by Laskewitz, the app is a fantastic source of humor that never fails to make me laugh. The user interface is simple and intuitive, making it easy to navigate. Highly recommend trying it out if you're in need of a good laugh!

user_GG7p4Wf5
As a loyal user of JokesMCP by Laskewitz, I find it incredibly entertaining and user-friendly. The collection of jokes is diverse and always manages to bring a smile to my face. It's a great tool for anyone looking to add a bit of humor to their day. Highly recommended!

user_Blr1vskb
JokesMCP is an absolute gem for anyone looking to add a burst of humor to their daily routine. Created by the talented Laskewitz, this user-friendly app serves up jokes in a variety of languages, making it accessible and enjoyable for a global audience. The seamless interface and witty welcome message make it a delightful experience from start to finish. Highly recommend!

user_XrYjBWBO
JokesMCP by Laskewitz is a fantastic app for humor lovers! It’s a seamless experience from the start, with a welcoming interface that keeps you engaged. The jokes are updated regularly, ensuring fresh and hilarious content every time you use it. Highly recommended for anyone looking to inject some fun into their day!

user_tHHcQbab
As a dedicated MCP application user, I find JokesMCP by Laskewitz absolutely hilarious and engaging! It's the perfect tool to brighten up your day with a wide range of jokes tailored for any sense of humor. The user interface is seamless, making it easy to navigate through endless laughter. Highly recommend for anyone looking to add some humor to their daily routine!

user_GW6ioNrA
JokesMCP by Laskewitz is a hilarious and user-friendly application that never fails to brighten my day. The jokes are consistently funny and the seamless interface ensures a smooth experience. I appreciate the diverse range of humor that caters to all tastes. Highly recommend for anyone looking to add a bit of laughter to their daily routine!

user_GZI5OqgF
As a devoted user of JokesMCP by Laskewitz, I am thoroughly impressed! This application has consistently delivered high-quality, entertaining jokes, making every day more enjoyable. The clean interface and seamless user experience are commendable. Highly recommended for anyone in need of a good laugh!