Repository navigation
feat: dcd settings command and dcd_get_team_settings MCP tool - #325
Merged
Merged
Conversation
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.
Contributor
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Teams could see most of their settings only in the console.
dcd settingsprints them, anddcd_get_team_settingsgives an agent the same object:Both read GET /org/settings with the usual auth: --api-key, DEVICE_CLOUD_API_KEY, or the
dcd loginsession and its org.--jsonprints 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 fixfeat— new featureperf— performance improvementrefactor— code change that's neither a fix nor a featuredocs— documentation onlychore/ci/build/test— tooling, no user-facing change!or PR notes aBREAKING CHANGE:)Checklist
pnpm lintpassespnpm typecheckpassespnpm buildpassesCHANGELOG.md(the release workflow handles this)README.md/STYLE_GUIDE.mdupdated if behaviour or output changedHow to test