io.github.Hamzaaamin/get-joke
Minimal MCP server that returns a random programming joke.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
@hamzaamin221/get-joke-mcpclaude mcp add get-joke -- npx -y @hamzaamin221/get-joke-mcp@0.1.1
{
"mcpServers": {
"get-joke": {
"command": "npx",
"args": [
"-y",
"@hamzaamin221/get-joke-mcp@0.1.1"
]
}
}
}
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
Get Joke MCP Server
Minimal Model Context Protocol (MCP) server (Node.js) that exposes one tool: get_joke.
Setup
npm install
Run
node index.js
Or:
npm start
Test (without Inspector)
This repo includes a tiny SDK-based client that spawns the server over stdio, lists tools, and calls get_joke:
npm run test:mcp
Tool response shape
The get_joke tool returns JSON like:
{
"joke": "Why do programmers prefer dark mode? Because light attracts bugs."
}
Publish to the MCP Registry (official)
The official MCP Registry stores metadata only, so you must publish the package to npm first.
- Publish to npm (once):
npm adduser
npm publish --access public
- Publish metadata to the MCP Registry:
brew install mcp-publisher
mcp-publisher login github
mcp-publisher publish
Notes:
package.jsonincludesmcpNameandserver.jsonuses the samename(required for verification).- If you change the version, bump it in both
package.jsonandserver.json(and republish to npm).
Questions fréquentes
Qu'est-ce que io.github.Hamzaaamin/get-joke ?
Minimal MCP server that returns a random programming joke.
Comment installer io.github.Hamzaaamin/get-joke ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add get-joke -- npx -y @hamzaamin221/get-joke-mcp@0.1.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.Hamzaaamin/get-joke ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
io.github.Hamzaaamin/get-joke est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.Hamzaaamin/get-joke ?
Il est publié par Hamzaaamin. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.