Skip to documentation
On this page
GearDex DocsAgents and MCP

MCP Adapter

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

Studio APIv1Updated August 2026
Joshua trees beneath the Milky Way in a dark desert sky
GearDex LogoGearDex
12 tools available

MCP host

GearDex tool connection

geardex-studio

Connected over stdio

Available tools

list_gear
list_shoots
create_maintenance
get_analytics
Tool resultlist_gear · 118 ms

I found three cameras available for Friday:

Fujifilm X-T5Ready
Lumix S5IIXReady
Fujifilm GFX100S IIReady

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

  1. Create a Studio API key in Settings → API & Agents with only the scopes your agent needs.
  2. Build the MCP package.
  3. Set environment variables in your agent host.
  4. Register the MCP server command in your host config.
  5. Run a first call like list_gear to verify connectivity and auth.

Build Command

# inside geardex repo
pnpm --filter @geardex/mcp-geardex build

Environment Variables

GEARDEX_BASE_URL=https://www.geardex.app
GEARDEX_STUDIO_API_KEY=gdx_live_your_key_here

You 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:

  1. Your agent host invokes an MCP tool (for example list_shoots).
  2. The GearDex MCP adapter maps that tool to a Studio API endpoint.
  3. The adapter sends a bearer-token request using your scoped API key.
  4. The Studio API enforces scopes, user ownership, and audit logging server-side.
  5. The adapter returns structured JSON back to the host as MCP tool output.
API reference values
NameTypeDescription
AuthbehaviorBearer token from GEARDEX_STUDIO_API_KEY on every request.
Timeoutbehavior20 second request timeout per API call.
Redirect handlingbehaviorSupports geardex.app and www.geardex.app alias redirect safely.
StatebehaviorStateless; no credential/session storage inside MCP server.
Write accessbehaviorMCP 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

API reference values
NameTypeDescription
list_geargear:readGET /gear with type/search/pagination filters.
find_geargear:readSearch helper over gear brand/model with required query.
get_gear_totalsgear:readAggregated count by gear type.
create_geargear:writePOST /gear for trusted inventory sync tools.
update_geargear:writePATCH /gear/{id} for trusted inventory updates.
delete_geargear:writeDELETE /gear/{id} for trusted inventory cleanup.
list_shootsshoots:readGET /shoots with status/date/search filters.
create_shootshoots:writePOST /shoots for trusted planning automations.
update_shootshoots:writePATCH /shoots/{id} for timing, status, location, notes, or progress updates.
delete_shootshoots:writeDELETE /shoots/{id} for cancelled/duplicate plans.
list_maintenancemaintenance:readGET /maintenance with status/date/search filters.
create_maintenancemaintenance:writePOST /maintenance for owned gear service scheduling.
update_maintenancemaintenance:writePATCH /maintenance/{id} for status, cost, provider, date, notes, or gear reference updates.
delete_maintenancemaintenance:writeDELETE /maintenance/{id} for trusted service-record cleanup.
list_documentsdocuments:readGET /documents with type, warranty, date, and search filters.
get_analytics_summaryanalytics:readGET /analytics aggregate summary payload.
get_profileprofile:readGET /profile account + studio profile metadata.

MCP Workflow Ideas

High-value ways to use MCP with your Studio data:

API reference values
NameTypeDescription
Weekly Ops BriefautomationRun list_shoots + get_analytics_summary and post a weekly studio digest.
Pre-Shoot Gear CheckassistantUse list_shoots + list_gear + list_maintenance before confirmed shoots.
Service Queue SyncautomationUse create_maintenance + update_maintenance to mirror repair queue changes into GearDex.
Warranty Risk MonitorautomationUse list_documents with warranty filters and flag expiring coverage.
Client Prep SnapshotassistantUse find_gear and list_gear to produce packlists for an upcoming job.
Executive KPI CarddashboardUse 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 summary

Prompt 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

API reference values
NameTypeDescription
401 key_not_foundauthKey missing/revoked/expired. Create a new key and update host env.
403 missing_scopeauthzTool requires scope your key does not include.
429 rate_limitedlimitsBack off and retry using Retry-After from response.
Empty datasetsdataKey is valid but user has no records for that scope/filter range.