create-module
Creates a new module in the specified organization
Create and edit Terrakube organizations, workspaces, private-registry modules and workspace variables — including the sensitive ones — without opening the Terrakube UI.
LABSCO SUMMARY
Organizations, workspaces, modules and variables all follow the same list, get, create and edit shape, with no delete tool anywhere in the set, so an unattended call can add or change but not remove. Variables are the one place values you would not want echoed pass through: create-variable and edit-variable both take a sensitive flag alongside the value. Workspaces bind to version control at creation rather than afterwards — vcsProvider and vcsRepo are parameters on create-workspace.
A Terrakube management client covering 16 tools over organizations, workspaces, private-registry modules and workspace variables.
TERRAKUBE_API_URL for the Terrakube instance and TERRAKUBE_PAT_TOKEN, a personal access token on it. Everything below organization level is addressed by organizationId, and variables additionally by workspaceId.
Add the configuration to your client
USE CASES
A workspace is created inside a named organization with its Terraform version and its VCS provider and repository set at the same time, so it comes into existence already bound to code.
Variables belong to a workspace and carry a category alongside their value, with a sensitive flag deciding whether the value is treated as a secret.
Modules are registered against a provider and a registry inside an organization, so a shared module gets an entry other workspaces can reference rather than being copied around.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
create-moduleCreates a new module in the specified organization
create-organizationCreates a new organization with the specified name and optional description
create-variableCreates a new variable in the specified workspace
create-workspaceCreates a new workspace in the specified organization
edit-moduleUpdates an existing module's details
edit-organizationUpdates an existing organization's details
edit-variableUpdates an existing variable's details
edit-workspaceUpdates an existing workspace's details
get-moduleRetrieves detailed information about a specific module
get-organizationRetrieves detailed information about a specific organization by its ID
get-variableRetrieves detailed information about a specific variable
get-workspaceRetrieves detailed information about a specific workspace
list-modulesLists all modules in the specified organization
list-organizationsLists all organizations accessible to the current user
list-variablesLists all variables in the specified workspace
list-workspacesLists all workspaces in the specified organization
BEFORE YOU INSTALL
16 tools when we connected. Tool names use kebab-case create-, edit-, get- and list- forms, not the documented camelCase. The published package has no delete tools, and update is spelled edit.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 16 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
{
"mcpServers": {
"terrakube": {
"command": "npx",
"args": [
"-y",
"@terrakube/mcp-server"
],
"env": {
"TERRAKUBE_API_URL": "<YOUR_API_URL>",
"TERRAKUBE_PAT_TOKEN": "<YOUR_PAT_TOKEN>"
}
}
}
}