Athena — roomy-mobile/archive/changes/2026-01-05-add-roomy-firestore-mcp/tasks/007-mcp-wiring-validation.md


status: done

Task: Wire into .mcp.json and validate end-to-end

End Goal

Cursor/Claude Code can run the MCP server and tools work end-to-end against the emulator.

Currently

Server builds and registers all tools.

Should

  • Update .mcp.json with roomy-firestore-mcp entry
  • Validate all tools work via MCP client

Constraints

  • [ ] Use absolute path for ROOMY_MCP_REPO_ROOT
  • [ ] Default environment: emulator

Acceptance Criteria

  • [ ] Cursor/Claude Code can connect to the MCP server
  • [ ] list_collections returns entity types from datamodels
  • [ ] Complete CRUD flow works: create_docget_docupdate_docdelete_doc

Implementation Checklist

  • [x] 7.1 Update .mcp.json with roomy-firestore-mcp entry
  • [x] 7.2 Set command: "node" and args: ["roomy-firestore-mcp/dist/index.js"]
  • [x] 7.3 Set ROOMY_MCP_REPO_ROOT to absolute path of repo root
  • [x] 7.4 Set ROOMY_MCP_DEFAULT_ENV to emulator
  • [ ] 7.5 Start Firestore emulator (user action required)
  • [ ] 7.6 Restart Cursor MCP / reload Claude Code (user action required)
  • [ ] 7.7 Test get_env returns emulator (user validation)
  • [ ] 7.8 Test set_env({ environment: "staging" }) (expect failure without SA) (user validation)
  • [ ] 7.9 Test list_collections returns expected types (user validation)
  • [ ] 7.10 Test get_schema({ type: "users" }) returns fields (user validation)
  • [ ] 7.11 Test create_docget_docupdate_docdelete_doc flow (user validation)

Notes

.mcp.json entry:

"roomy-firestore-mcp": {
  "command": "node",
  "args": ["roomy-firestore-mcp/dist/index.js"],
  "env": {
    "ROOMY_MCP_REPO_ROOT": "/Users/codaveto/Repos/roomy/roomy-mobile/roomy-firebase",
    "ROOMY_MCP_DEFAULT_ENV": "emulator"
  }
}

Reacties

Nog geen reacties