Skip to content

Add Hosted Agents /v2/agents/configs OpenAPI (MARSOHS-741) - #1213

Open
nveerdixit wants to merge 3 commits into
digitalocean:mainfrom
nveerdixit:MARSOHS-741-agent-configs
Open

Add Hosted Agents /v2/agents/configs OpenAPI (MARSOHS-741)#1213
nveerdixit wants to merge 3 commits into
digitalocean:mainfrom
nveerdixit:MARSOHS-741-agent-configs

Conversation

@nveerdixit

Copy link
Copy Markdown

Summary

  • Add /v2/agents/configs list/create, /v2/agents/configs/{config_id} get/delete, and /v2/agents/configs/{config_id}/sessions
  • Models + curl samples mirror harness-api harness.swagger.json Agent Configs surface
  • Stacks on Hosted Agents sessions Origin OpenAPI (MARSOHS-551)

Test plan

  • Spec CI / spectral as configured for this repo
  • Paths mirror live harness swagger used by local :8080 stack

Notes

  • Clone endpoint deferred until harness PR 739
  • List search deferred to MARSOHS-774
  • pydo regen depends on this PR landing (or local SPEC_FILE=... make generate)

Made with Cursor

nveerdixit and others added 2 commits July 27, 2026 13:19
Port the sessions API from harness.swagger.json including session_origin
product provenance. Document that ListSessions omits simulation/evaluation
sessions server-side for customer clients.
Mirror harness Agent Configs list/get/create/delete and list sessions by config_id. Stacks on the Hosted Agents sessions Origin OpenAPI work (MARSOHS-551).

Co-authored-by: Cursor <cursoragent@cursor.com>
@nveerdixit

Copy link
Copy Markdown
Author

Local test evidence (MARSOHS-741)

Validated the /v2/agents/configs* surface against local harness-api http://127.0.0.1:8080 (auth Bearer do_dev_demo@acme.com) — same paths this OpenAPI change documents.

GET    /v2/agents/configs                     → 200 (configs list)
POST   /v2/agents/configs                     → 201 (created id 019fea8c-e3e8-70ca-a901-d9308cbe95ee)
GET    /v2/agents/configs/{id}                → 200
GET    /v2/agents/configs/{id}/sessions       → 200 {"sessions":[]}
DELETE /v2/agents/configs/{id}                → 204
GET    /v2/agents/configs/{id} (after delete) → 404

Client consumers:

Align with harness-api: slots are name/source/provider only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@nveerdixit

Copy link
Copy Markdown
Author

Follow-up: removed configured from agent_config_credential_slot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant