mood
Check the mood of the MCP Server Template for Cursor IDE by asking questions like 'How are you?' or 'What’s your mood?' and receive a cheerful response with a heart ❤️.
Instructions
Ask the server about its mood - it's always happy!
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | 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 ❤️ |
Implementation Reference
- mcp_hitchcode/server.py:58-63 (handler)The handler function that executes the 'mood' tool logic, always returning 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)]
- mcp_hitchcode/server.py:575-588 (schema)The input schema definition for the 'mood' tool, specifying a required 'question' string parameter.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, } }, }, ),
- mcp_hitchcode/server.py:425-432 (registration)The dispatch logic within the @app.call_tool() handler that matches tool name 'mood' and calls the check_mood function.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"])
- mcp_hitchcode/server.py:406-411 (helper)Helper string defining the detailed description used in the 'mood' tool 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 ❤️" )