loading…
Search for a command to run...
loading…
gives random programming jokes
gives random programming jokes
Minimal Model Context Protocol (MCP) server (Node.js) that exposes one tool: get_joke.
npm install
node index.js
Or:
npm start
This repo includes a tiny SDK-based client that spawns the server over stdio, lists tools, and calls get_joke:
npm run test:mcp
The get_joke tool returns JSON like:
{
"joke": "Why do programmers prefer dark mode? Because light attracts bugs."
}
The official MCP Registry stores metadata only, so you must publish the package to npm first.
npm adduser
npm publish --access public
brew install mcp-publisher
mcp-publisher login github
mcp-publisher publish
Notes:
package.json includes mcpName and server.json uses the same name (required for verification).package.json and server.json (and republish to npm).Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"get-joke": {
"command": "npx",
"args": []
}
}
}