Skip to content

feat(1claw): add oneclaw module for 1Claw MCP and vault integration#843

Closed
kmjones1979 wants to merge 3 commits intocoder:mainfrom
kmjones1979:add-1claw-oneclaw-module
Closed

feat(1claw): add oneclaw module for 1Claw MCP and vault integration#843
kmjones1979 wants to merge 3 commits intocoder:mainfrom
kmjones1979:add-1claw-oneclaw-module

Conversation

@kmjones1979
Copy link
Copy Markdown

Summary

Adds the 1claw namespace and oneclaw module, ported from 1clawAI/1claw-coder-workspace-module, so Coder workspaces can provision 1Claw vault/agent identities and merge MCP config for Cursor, Claude Code, and other MCP clients.

What’s included

  • registry/1claw/modules/oneclaw/: Terraform (main.tf, variables.tf, outputs.tf), scripts/ (provision, bootstrap, setup), main.tftest.hcl, tests/test_setup.sh for setup.sh
  • registry/1claw/README.md and namespace avatar.svg
  • Outputs vault_id, agent_id_1claw, provisioning_mode use nonsensitive() where appropriate for Terraform 1.14+ tests
  • Scripts: terraform_validate.sh / terraform_test_all.sh — avoid Bash 3.2 + set -u errors on empty arrays; drop terraform test -verbose for Terraform 1.5.x compatibility

Testing

  • terraform validate in module directory
  • terraform test (Terraform 1.14+; CI uses current Terraform)
  • bash tests/test_setup.sh
  • ShellCheck on new .sh files

Notes

  • Initial module version in README examples: 1.0.0
  • Upstream license: Apache-2.0 (noted in module README)

Generated with Cursor using Claude

Made with Cursor

- Port Terraform, scripts, and setup tests from 1clawAI/1claw-coder-workspace-module
- Add namespace README and placeholder avatar (replace for production branding)
- Add main.tftest.hcl; mark vault_id, agent_id_1claw, provisioning_mode outputs
  with nonsensitive() for Terraform 1.14+ test compatibility
- README follows registry rules (usage examples only, no variable tables)
- Default script icon uses /icon/vault.svg (existing Coder icon)

Made-with: Cursor
…t -verbose

- Replace empty-array [*] / [@] patterns that error under bash 3.2 with set -u
- Remove -verbose from terraform test (not supported on Terraform 1.5.x)

Made-with: Cursor
@DevelopmentCats
Copy link
Copy Markdown
Collaborator

@kmjones1979 I would take a look at our contributing docs for how one is meant to scaffold a module, and the namespace should be your own rather than the brand of the product the module is for.

I would take a look at the CONTRIBUTING.md and then submit once more after understanding the style and format for modules. You can also use other modules in the coder namespace as a reference.

Also you modified more than just the module, here which is not ideal.

Thank you for the submission and I look forward to seeing more from you, but I am closing this now so this can be re-done.

@kmjones1979
Copy link
Copy Markdown
Author

Sure thing, working on this now. Thank you!

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.

2 participants