MCP Adapter
Use GearDex MCP tools on top of the Studio API for agent-friendly workflows.

GearDexStudio consoleMCP host
GearDex tool connection
geardex-studio
Connected over stdio
Available tools
list_geargear:readlist_shootsshoots:readcreate_maintenancemaintenance:writeget_analyticsanalytics:readI found three cameras available for Friday:
Overview
The MCP adapter wraps the Studio API and exposes tool-style methods for agent runtimes like Claude Desktop, Cursor, and custom MCP hosts.
Use MCP when you want an AI agent to call controlled Studio tools instead of crafting raw HTTP requests.
Getting Started
- Create a Studio API key in Settings → API & Agents with only the scopes your agent needs.
- Build the MCP package.
- Set environment variables in your agent host.
- Register the MCP server command in your host config.
- Run a first call like
list_gearto verify connectivity and auth.
Build Command
# inside geardex repo
pnpm --filter @geardex/mcp-geardex buildEnvironment Variables
GEARDEX_BASE_URL=https://www.geardex.app
GEARDEX_STUDIO_API_KEY=gdx_live_your_key_hereYou can use either https://www.geardex.app or https://geardex.app. The MCP adapter handles the domain alias redirect while preserving authentication.
Configure Agent
Point your MCP host to the GearDex MCP server entrypoint and include env vars. This example works for Claude Desktop style MCP configs.
MCP Config (JSON)
{
"mcpServers": {
"geardex": {
"command": "node",
"args": ["packages/mcp-geardex/dist/index.js"],
"env": {
"GEARDEX_BASE_URL": "https://www.geardex.app",
"GEARDEX_STUDIO_API_KEY": "gdx_live_your_key_here"
}
}
}
}First Validation Prompt
List my 5 most recent gear items and group them by type.
Then show the total count by type.Technical Guide
Request flow:
- Your agent host invokes an MCP tool (for example
list_shoots). - The GearDex MCP adapter maps that tool to a Studio API endpoint.
- The adapter sends a bearer-token request using your scoped API key.
- The Studio API enforces scopes, user ownership, and audit logging server-side.
- The adapter returns structured JSON back to the host as MCP tool output.
| Name | Type | Description |
|---|---|---|
Auth | behavior | Bearer token from GEARDEX_STUDIO_API_KEY on every request. |
Timeout | behavior | 20 second request timeout per API call. |
Redirect handling | behavior | Supports geardex.app and www.geardex.app alias redirect safely. |
State | behavior | Stateless; no credential/session storage inside MCP server. |
Write access | behavior | MCP exposes gear, shoot, and maintenance create/update/delete tools. Each tool uses the same Studio API write scopes, audit logging, and webhook emission as direct HTTP calls. |
Need raw endpoint schemas for custom clients? Use the OpenAPI document at /api/studio-agent/openapi.
Tool Map
| Name | Type | Description |
|---|---|---|
list_gear | gear:read | GET /gear with type/search/pagination filters. |
find_gear | gear:read | Search helper over gear brand/model with required query. |
get_gear_totals | gear:read | Aggregated count by gear type. |
create_gear | gear:write | POST /gear for trusted inventory sync tools. |
update_gear | gear:write | PATCH /gear/{id} for trusted inventory updates. |
delete_gear | gear:write | DELETE /gear/{id} for trusted inventory cleanup. |
list_shoots | shoots:read | GET /shoots with status/date/search filters. |
create_shoot | shoots:write | POST /shoots for trusted planning automations. |
update_shoot | shoots:write | PATCH /shoots/{id} for timing, status, location, notes, or progress updates. |
delete_shoot | shoots:write | DELETE /shoots/{id} for cancelled/duplicate plans. |
list_maintenance | maintenance:read | GET /maintenance with status/date/search filters. |
create_maintenance | maintenance:write | POST /maintenance for owned gear service scheduling. |
update_maintenance | maintenance:write | PATCH /maintenance/{id} for status, cost, provider, date, notes, or gear reference updates. |
delete_maintenance | maintenance:write | DELETE /maintenance/{id} for trusted service-record cleanup. |
list_documents | documents:read | GET /documents with type, warranty, date, and search filters. |
get_analytics_summary | analytics:read | GET /analytics aggregate summary payload. |
get_profile | profile:read | GET /profile account + studio profile metadata. |
MCP Workflow Ideas
High-value ways to use MCP with your Studio data:
| Name | Type | Description |
|---|---|---|
Weekly Ops Brief | automation | Run list_shoots + get_analytics_summary and post a weekly studio digest. |
Pre-Shoot Gear Check | assistant | Use list_shoots + list_gear + list_maintenance before confirmed shoots. |
Service Queue Sync | automation | Use create_maintenance + update_maintenance to mirror repair queue changes into GearDex. |
Warranty Risk Monitor | automation | Use list_documents with warranty filters and flag expiring coverage. |
Client Prep Snapshot | assistant | Use find_gear and list_gear to produce packlists for an upcoming job. |
Executive KPI Card | dashboard | Use get_analytics_summary daily and render KPI cards in Slack/Notion. |
Prompt Pattern: Weekly Studio Brief
Use GearDex MCP tools to generate a Monday brief:
1) list_shoots for the next 14 days
2) list_maintenance for scheduled/in_progress items
3) list_documents where warrantyStatus is warning or critical
4) get_analytics_summary
Return:
- risks
- upcoming workload
- inventory readiness summaryPrompt Pattern: Trusted Maintenance Update
Use GearDex MCP tools to close this service ticket:
1) find_gear for "Sony A7S III"
2) create_maintenance with service_type "Sensor cleaning"
3) update_maintenance to completed when the ticket is closed
Only use write tools if the configured API key includes maintenance:write.Security Checklist
- Use one key per agent runtime.
- Grant minimum scopes required for that specific agent.
- Prefer expiring keys and rotate regularly.
- Revoke immediately if a host/workstation is compromised.
- Monitor audit activity in Settings → API & Agents.
Troubleshooting
| Name | Type | Description |
|---|---|---|
401 key_not_found | auth | Key missing/revoked/expired. Create a new key and update host env. |
403 missing_scope | authz | Tool requires scope your key does not include. |
429 rate_limited | limits | Back off and retry using Retry-After from response. |
Empty datasets | data | Key is valid but user has no records for that scope/filter range. |