Skip to content
Skill

mcp-sunsama

by robertn702

AI Summary

Automates upgrading the sunsama-api dependency and wrapping new API endpoints as MCP tools, helping developers keep their Sunsama integrations current and fully functional.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "mcp-sunsama" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory
mkdir -p .claude/skills/commands && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/commands/SKILL.md "https://raw.githubusercontent.com/robertn702/mcp-sunsama/main/.claude/commands/upgrade-sunsama-api.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Upgrade sunsama-api and add missing MCP tools

Steps

• Check current vs latest version: `bash cat package.json | grep sunsama-api npm view sunsama-api version ` • If already on latest, inform user and stop • Upgrade the dependency: `bash bun add sunsama-api@latest ` • Verify build passes: `bash bun run typecheck bun test ` • If either fails, stop and report the issue • Analyze new API methods: • Read node_modules/sunsama-api/dist/types/client/index.d.ts to find the method class hierarchy • Read each method class file to enumerate all public methods on SunsamaClient • Compare against existing tools in src/tools/ to find unwrapped methods • Report: "Found X new methods not wrapped as MCP tools: [list]" • For each unwrapped method: • Read the method signature and JSDoc from the sunsama-api type definitions • Read the corresponding types from node_modules/sunsama-api/dist/types/types/api.d.ts • Add the appropriate Zod schema to src/schemas.ts following existing patterns • Add the tool implementation to the appropriate file in src/tools/: • User operations → user-tools.ts • Task operations → task-tools.ts • Stream operations → stream-tools.ts • Calendar operations → calendar-tools.ts • Update src/tools/index.ts if a new tools file was created • Verify new tools work: `bash bun run typecheck bun test ` • Create changeset: • If only dependency bump (no new tools): patch changeset • If new tools added: minor changeset • Write changeset to .changeset/ with descriptive summary • Report summary: • Previous version → new version • New methods found • Tools added (if any) • Changeset created

Notes

• Follow existing patterns in src/tools/ for tool structure • Use withTransportClient wrapper for all tools • Prefer formatJsonResponse for single objects, formatTsvResponse for arrays • Don't use as type assertions — if needed, request schema exports from sunsama-api • Run typecheck after each file modification to catch errors early

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
44 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars44
Forks15
Issues1
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code