MCP server for Happy AI session management - query sessions, send messages, read responses, manage machines, start/archive sessions
Happy Server MCP provides 8 tools with comprehensive descriptions and reasonably complete schemas. All tools follow clear verb_noun naming conventions (happy_list_*, happy_read_*, happy_send_*, happy_start_*, happy_archive_*). Descriptions are detailed and exceed the 10-1024 character guideline (range: 95-280 chars). Input schemas use Zod with type definitions and parameter descriptions. However, output schemas are NOT documented in code or typings, responses are implicit text formatting without declared structured schemas. Error handling returns human-readable messages but lacks recovery guidance or error classification. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are present. Most tools lack pagination support despite list_sessions and list_machines potentially returning large result sets. The implementations show good intent but miss key production patterns around schema documentation and structured output contracts.
Archive a Happy AI session to mark it as complete/done. Returns success/failure status.
List available environment variable presets. These can be used when starting new sessions with happy_start_session.
List all machines registered with Happy. Returns machine IDs, hostnames, platforms, and activity status.
List recently used folder paths for a machine. Useful for starting sessions in familiar locations.
List all Happy AI sessions. Returns session IDs, titles, paths, machines, and activity status.
Read recent messages from a Happy AI session. Use this to see the conversation history.
Output schemas are not documented. Tools return text responses with implicit structure (formatting messages into text fields). LLMs cannot infer what fields will be present in structured responses or plan downstream tool calls that depend on return values (e.g., session_id from happy_start_session). Response contracts must be explicit in tool definitions.
List tools lack pagination support. happy_list_sessions, happy_list_machines, and happy_list_environment_sets accept optional 'limit' parameters but do not return total counts or next_cursor tokens. Without pagination metadata, large result sets risk blowing context windows, and agents cannot page through results systematically.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Send a message to a Happy AI session to trigger it to work. The message will be sent with bypass permissions mode.
Start a new Happy AI session on a specified machine and path. Returns the new session ID.
No tool annotations present. Destructive tools (happy_send_message, happy_start_session, happy_archive_session) and read-only tools (happy_list_*, happy_read_*) lack explicit destructiveHint, idempotentHint, or readOnlyHint annotations. These hints help agents understand consequences and retry safety, especially for multi-step planning.
Error handling lacks classification and recovery guidance. Errors return plain text messages like 'Error listing sessions: [message]' with isError=true flag, but do not categorize errors as retryable, user-fixable, or fatal. No recovery suggestions (e.g., 'Try search_users() with a partial name' pattern) are provided.
Missing confirmation/dry-run for destructive operations. happy_send_message and happy_archive_session perform irreversible state changes (sending messages to sessions, archiving sessions). No confirmation step or dry-run mode exists to guard against agent mistakes.
Result limits not enforced or documented in descriptions. happy_list_sessions defaults to 50, but the description does not state 'Results are limited to 50 items.' Large default limits without explicit capping could allow agents to request unreasonable result sets.