Skip to main content
Glama
singh-himanshu3

KinSwitch

KinSwitch

KinSwitch is a consent-aware Alexa+ household coordination agent. When a routine breaks, it checks the household schedule, finds capable coverage, proposes the smallest safe change, and waits for human approval before acting.

Built for the Alexa+ track and AWS Builder mini-challenge of the 2026 Build, Ship, Shape Amazon Developer Hackathon.

Judge demo

Use the seeded prompt:

Asha can't make the pharmacy pickup or dinner check-in tonight. Replan the evening without moving the family call.

KinSwitch identifies the two at-risk tasks, matches each task's requirements to an available household member, shows the evidence behind each recommendation, and pauses at an explicit approval gate. Approval updates the household runway and creates an audit entry.

The demo uses fictional household data. KinSwitch does not provide medical advice, alter medication instructions, contact emergency services, or execute financial or legal actions.

Related MCP server: Google Calendar MCP Server

Architecture

  • React and Vite provide the responsive Alexa+ simulation.

  • Express hosts the web app, product API, and MCP endpoint.

  • The official Model Context Protocol TypeScript SDK exposes a stateless Streamable HTTP server at POST /mcp.

  • Amazon Bedrock can generate constrained recovery plans in AGENT_MODE=bedrock.

  • DynamoDB can persist the demo household when KIN_SWITCH_TABLE is set.

  • A deterministic local agent keeps development, tests, and judge fallback behavior reliable without cloud credentials.

flowchart LR
  A[Alexa+ or web demo] --> B[Express API + MCP]
  B --> C[Household planner]
  C --> D[Amazon Nova on Bedrock]
  C --> E[Constraint validator]
  E --> F[Human approval gate]
  F --> G[DynamoDB state + audit]

Run locally

Requires Node.js 22 or later.

npm install
npm run dev

Open http://127.0.0.1:8787.

npm test
npm run lint
npm run build
npm start

Verified

  • 12 domain and safety tests pass.

  • TypeScript, ESLint, and the production Vite build pass.

  • npm audit reports zero known vulnerabilities.

  • The Linux production container builds, starts, serves the app, and answers its health endpoint.

  • An official MCP client negotiates Streamable HTTP, lists all three tools, invokes them, and confirms replayed approval is rejected.

  • GitHub Actions runs the complete quality gate on every push and pull request.

AWS mode

Set AGENT_MODE=bedrock, AWS_REGION, BEDROCK_MODEL_ID, and KIN_SWITCH_TABLE. The runtime identity needs only bedrock:InvokeModel for the selected model and read/write access to the single DynamoDB table. Do not commit AWS credentials; use the workload role supplied by the deployment platform.

Reproducible App Runner, ECR, DynamoDB, IAM, and Bedrock configuration lives in infra. See docs/DEPLOYMENT.md for the two-stage deployment command and cost boundary.

MCP tools

  • household_context: read synthetic schedule, availability, and risk context.

  • propose_handoff: create an evidence-backed proposal without executing it.

  • approve_handoff: execute only a specifically identified pending plan.

The endpoint intentionally rejects non-POST requests and keeps no MCP session state, making it suitable for a horizontally scaled demo deployment.

Submission kit

Development disclosure

KinSwitch was created during the hackathon submission period with Codex as a technical development assistant. Product decisions, evaluation claims, limitations, and the final submission remain the entrant's responsibility. The hackathon rules permit third-party technical assistance when the entrant owns the result.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

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/singh-himanshu3/kinswitch'

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