Skip to content

[Official SDK Migration] - Workspace crud tools - #563

Open
Marin2409 wants to merge 8 commits into
hashicorp:mainfrom
Marin2409:tool-workspace-crud-sdk-migration
Open

Marin2409 wants to merge 8 commits into
hashicorp:mainfrom
Marin2409:tool-workspace-crud-sdk-migration

Conversation

@Marin2409

@Marin2409 Marin2409 commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

This PR continues the work from #506 and takes over the Workspace crud tools migration.

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@Marin2409
Marin2409 marked this pull request as ready for review October 7, 2026 20:14
@Marin2409
Marin2409 requested a review from a team as a code owner October 7, 2026 20:14
@Marin2409
Marin2409 force-pushed the tool-workspace-crud-sdk-migration branch 2 times, most recently from 5ae3c5e to 5dcf678 Compare October 8, 2026 16:34
@Marin2409
Marin2409 marked this pull request as draft October 8, 2026 17:28
@Marin2409
Marin2409 marked this pull request as ready for review October 8, 2026 20:49
@Marin2409
Marin2409 force-pushed the tool-workspace-crud-sdk-migration branch from 53c608a to 2c1a0b8 Compare October 8, 2026 21:17
@Marin2409
Marin2409 marked this pull request as draft October 9, 2026 15:20
@Marin2409
Marin2409 force-pushed the tool-workspace-crud-sdk-migration branch from 693ed37 to 9f4fd22 Compare October 12, 2026 17:41
@Marin2409
Marin2409 marked this pull request as ready for review October 12, 2026 19:39
Comment thread pkg/mcp-official/tools/tfe/workspaces_get_tool.go Outdated
Comment thread pkg/mcp-official/tools/tfe/workspaces_get_tool.go Outdated
Comment thread pkg/mcp-official/tools/tfe/workspaces_update_tool.go
options := tfe.WorkspaceUpdateOptions{}
changed := false

if input.NewName != "" {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new_name is sent to the API as is, while terraform_org_name and workspace_name are trimmed and blank-checked. Please trim it and return new_name must not be blank if it is provided but empty, so it matches the other fields and gives a clearer error than the API's rejection.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants