Skip to content

feat: dcd settings command and dcd_get_team_settings MCP tool - #325

Merged
finalerock44 merged 1 commit into
devfrom
feat/team-settings
Nov 17, 2026
Merged

finalerock44 merged 1 commit into
devfrom
feat/team-settings

Conversation

@finalerock44

Copy link
Copy Markdown
Contributor

Teams could see most of their settings only in the console. dcd settings prints them, and dcd_get_team_settings gives an agent the same object:

  • team name, org id and sign-in requirement
  • concurrency: each runner type's min/max, and shared pools with their members
  • test runtime: the default and the EXTENDED_RUNTIME cap, or off
  • retry escalation and the overage limit
  • whether a webhook, Slack and GitHub are connected

Both read GET /org/settings with the usual auth: --api-key, DEVICE_CLOUD_API_KEY, or the dcd login session and its org. --json prints the API response as-is. For a standard team member the API withholds the sign-in requirement, retry escalation and overage limit, and the command shows them as "owner or admin only" rather than as off.

An API without the endpoint answers 404, which becomes "This DeviceCloud API doesn't support reading team settings yet" rather than "Resource not found".

The response type is hand-defined in src/types/domain/team-settings.types.ts, as the device-session types are, rather than regenerating schema.types.ts.

The MCP tool is read-only, so it is also served in --read-only mode.

What & why

Type of change

  • fix — bug fix
  • feat — new feature
  • perf — performance improvement
  • refactor — code change that's neither a fix nor a feature
  • docs — documentation only
  • chore / ci / build / test — tooling, no user-facing change
  • Breaking change (title has ! or PR notes a BREAKING CHANGE:)

Checklist

  • PR title follows the Conventional Commits format (see comment above)
  • pnpm lint passes
  • pnpm typecheck passes
  • pnpm build passes
  • I have not bumped the version or edited CHANGELOG.md (the release workflow handles this)
  • I have signed the CLA (the bot will prompt on first contribution)
  • Docs / README.md / STYLE_GUIDE.md updated if behaviour or output changed

How to test

Teams could see most of their settings only in the console. `dcd settings`
prints them, and `dcd_get_team_settings` gives an agent the same object:

- team name, org id and sign-in requirement
- concurrency: each runner type's min/max, and shared pools with their members
- test runtime: the default and the EXTENDED_RUNTIME cap, or off
- retry escalation and the overage limit
- whether a webhook, Slack and GitHub are connected

Both read GET /org/settings with the usual auth: --api-key,
DEVICE_CLOUD_API_KEY, or the `dcd login` session and its org. `--json` prints
the API response as-is. For a standard team member the API withholds the
sign-in requirement, retry escalation and overage limit, and the command shows
them as "owner or admin only" rather than as off.

An API without the endpoint answers 404, which becomes "This DeviceCloud API
doesn't support reading team settings yet" rather than "Resource not found".

The response type is hand-defined in src/types/domain/team-settings.types.ts,
as the device-session types are, rather than regenerating schema.types.ts.

The MCP tool is read-only, so it is also served in --read-only mode.
@finalerock44 finalerock44 self-assigned this Nov 17, 2026
@claude

claude Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@finalerock44
finalerock44 merged commit 61f4e91 into dev Nov 17, 2026
9 checks passed
@finalerock44
finalerock44 deleted the feat/team-settings branch November 17, 2026 11:10
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