Skip to main content
Glama
jankowtf

MCP Server Template for Cursor IDE

by jankowtf

mood

Check the server's mood by asking questions like 'How are you?' to receive cheerful responses with hearts in Cursor IDE.

Instructions

Ask the server about its mood - it's always happy!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
questionYesAsk this MCP server about its mood! You can phrase your question in any way you like - 'How are you?', 'What's your mood?', or even 'Are you having a good day?'. The server will always respond with a cheerful message and a heart ❤️

Implementation Reference

  • The function that implements the core logic of the 'mood' tool. It ignores the question and always returns a cheerful message with a heart emoji.
    async def check_mood( question: str, ) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]: """Check server's mood - always responds cheerfully with a heart.""" msg: str = "I'm feeling great and happy to help you! ❤️" return [types.TextContent(type="text", text=msg)]
  • Dispatch logic within the main @app.call_tool() handler that routes 'mood' tool calls to the check_mood function, with input validation.
    elif name == "mood": if "question" not in arguments: return [ types.TextContent( type="text", text="Error: Missing required argument 'question'" ) ] return await check_mood(arguments["question"])
  • Tool registration in @app.list_tools() defining the name, description, and input schema for the 'mood' tool, referencing mood_description.
    types.Tool( name="mood", description="Ask the server about its mood - it's always happy!", inputSchema={ "type": "object", "required": ["question"], "properties": { "question": { "type": "string", "description": mood_description, } }, }, ),
  • Helper variable providing the detailed description used in the 'mood' tool's input schema.
    mood_description: str = ( "Ask this MCP server about its mood! You can phrase your question " "in any way you like - 'How are you?', 'What's your mood?', or even " "'Are you having a good day?'. The server will always respond with " "a cheerful message and a heart ❤️" )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jankowtf/mcp-hitchcode'

If you have feedback or need assistance with the MCP directory API, please join our Discord server