Guide
MCP & AI tools
PRESHos hosts a Model Context Protocol (MCP) server. Connect with WorkOS OAuth to act with your current PRESHos user permissions, or use an API key with its additional scope restrictions. Every API operation is one MCP tool.
Add https://api.dev.preshos.com/v1/mcp as an HTTP MCP server and authenticate through WorkOS with your own account. Select your workspace and authorize the connection. Custom API scopes are not required: every call checks your active membership, developer access, and current object, record, and field permissions. The connection can perform writes and deletes you are permitted to perform.
claude mcp add --transport http preshos https://api.dev.preshos.com/v1/mcp{
"mcpServers": {
"preshos": { "type": "http", "url": "https://api.dev.preshos.com/v1/mcp" }
}
}Run get_me after sign-in to verify the user and workspace. OAuth scopes in that response are informational. You can block the connection in Settings → Developer → OAuth connections.
The server URL is https://api.dev.preshos.com/v1/mcp (Streamable HTTP). Authenticate with an API key in the Authorization header. Use a Read only key for exploratory agents, and a service key for unattended ones.
claude mcp add --transport http preshos https://api.dev.preshos.com/v1/mcp \
--header "Authorization: Bearer $PRESHOS_API_KEY"{
"mcpServers": {
"preshos": {
"url": "https://api.dev.preshos.com/v1/mcp",
"headers": { "Authorization": "Bearer ${env:PRESHOS_API_KEY}" }
}
}
}{
"mcpServers": {
"preshos": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.dev.preshos.com/v1/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer preshos_v1_…" }
}
}
}Each tool is one API operation, named after its operationId in snake case (listRecords → list_records). A tool's input is the operation's path parameters, query parameters, and body merged into one object; writes also accept idempotency_key, and updates accept if_match with a record version. Results are the REST response body, returned as structured content; an error response sets isError and carries the same error.code.
OAuth connections expose the operation catalog; each call still enforces the user's current permissions. API-key connections only list tools their scopes allow, so a Read only key sees no write tools. Calls run through the shared API pipeline: authentication, rate limit, validation, idempotency, and record and field permissions.
| Tool | Endpoint | Read-only | Destructive | Idempotent |
|---|---|---|---|---|
get_me | GET /v1/me | yes | no | yes |
list_users | GET /v1/users | yes | no | yes |
get_user | GET /v1/users/{user_id} | yes | no | yes |
list_teams | GET /v1/teams | yes | no | yes |
list_objects | GET /v1/objects | yes | no | yes |
get_object | GET /v1/objects/{object_type} | yes | no | yes |
get_workflow | GET /v1/workflows/{workflow_id} | yes | no | yes |
list_records | GET /v1/objects/{object_type}/records | yes | no | yes |
search_records | POST /v1/objects/{object_type}/records/search | yes | no | yes |
aggregate_records | POST /v1/objects/{object_type}/records/aggregate | yes | no | yes |
batch_records | POST /v1/objects/{object_type}/records/batch | no | yes | no |
create_record | POST /v1/objects/{object_type}/records | no | no | no |
get_record | GET /v1/objects/{object_type}/records/{record_id} | yes | no | yes |
update_record | PATCH /v1/objects/{object_type}/records/{record_id} | no | no | yes |
delete_record | DELETE /v1/objects/{object_type}/records/{record_id} | no | yes | no |
set_record_status | POST /v1/objects/{object_type}/records/{record_id}/status | no | no | yes |
list_relationships | GET /v1/objects/{object_type}/records/{record_id}/relationships | yes | no | yes |
list_related_records | GET /v1/objects/{object_type}/records/{record_id}/relationships/{association_id} | yes | no | yes |
link_record | POST /v1/objects/{object_type}/records/{record_id}/relationships/{association_id} | no | no | yes |
unlink_record | DELETE /v1/objects/{object_type}/records/{record_id}/relationships/{association_id}/{target_id} | no | no | yes |
list_comments | GET /v1/objects/{object_type}/records/{record_id}/comments | yes | no | yes |
create_comment | POST /v1/objects/{object_type}/records/{record_id}/comments | no | no | no |
list_team_workspaces | GET /v1/team-workspaces | yes | no | yes |
get_team_workspace | GET /v1/team-workspaces/{workspace_id} | yes | no | yes |
list_team_workspace_tasks | GET /v1/team-workspaces/{workspace_id}/tasks | yes | no | yes |
create_team_workspace_task | POST /v1/team-workspaces/{workspace_id}/tasks | no | no | no |
get_team_workspace_task | GET /v1/team-workspaces/{workspace_id}/tasks/{task_id} | yes | no | yes |
update_team_workspace_task | PATCH /v1/team-workspaces/{workspace_id}/tasks/{task_id} | no | no | yes |
set_team_workspace_task_status | POST /v1/team-workspaces/{workspace_id}/tasks/{task_id}/status | no | no | yes |
assign_team_workspace_task | POST /v1/team-workspaces/{workspace_id}/tasks/{task_id}/assign | no | no | no |
list_team_workspace_objectives | GET /v1/team-workspaces/{workspace_id}/objectives | yes | no | yes |
create_team_workspace_objective | POST /v1/team-workspaces/{workspace_id}/objectives | no | no | no |
update_team_workspace_objective | PATCH /v1/team-workspaces/{workspace_id}/objectives/{objective_id} | no | no | yes |
list_team_workspace_thread | GET /v1/team-workspaces/{workspace_id}/thread | yes | no | yes |
post_to_team_workspace_thread | POST /v1/team-workspaces/{workspace_id}/thread | no | no | no |
list_team_workspace_questions | GET /v1/team-workspaces/{workspace_id}/questions | yes | no | yes |
answer_team_workspace_question | POST /v1/team-workspaces/{workspace_id}/questions/{question_id}/answer | no | no | no |
list_team_workspace_documents | GET /v1/team-workspaces/{workspace_id}/documents | yes | no | yes |
export_team_workspace_document | GET /v1/team-workspaces/{workspace_id}/documents/{document_id}/export | yes | no | yes |
list_eval_suites | GET /v1/evals/suites | yes | no | yes |
get_eval_suite | GET /v1/evals/suites/{suite_id} | yes | no | yes |
export_eval_suite | GET /v1/evals/suites/{suite_id}/export | yes | no | yes |
create_eval_experiment | POST /v1/evals/experiments | no | no | no |
get_eval_experiment | GET /v1/evals/experiments/{experiment_id} | yes | no | yes |
list_eval_trials | GET /v1/evals/experiments/{experiment_id}/trials | yes | no | yes |
list_eval_gate_results | GET /v1/evals/experiments/{experiment_id}/gates | yes | no | yes |
search | GET /v1/search | yes | no | yes |
The hints map to MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint). Clients that ask before destructive actions use them to prompt the user.
Record fields differ per workspace. Agents should call get_object (GET /v1/objects/{object_type}) before writing: it returns the field contract (keys, types, required, editable, options), statuses, relationships, and what the key may do. The server's instructions tell agents to start with list_objects and get_object.
The OpenAPI 3.1 document is public at /openapi.json and at https://api.dev.preshos.com/v1/openapi.json. Each operation carries x-required-scopes and x-preshos-annotations, so you can also generate your own tool definitions from it.