Skip to content

feat: add Moss Search skill for Zo Computer#69

Open
ashvathsureshkumar wants to merge 9 commits intomainfrom
zo-computer-plugin
Open

feat: add Moss Search skill for Zo Computer#69
ashvathsureshkumar wants to merge 9 commits intomainfrom
zo-computer-plugin

Conversation

@ashvathsureshkumar
Copy link
Contributor

@ashvathsureshkumar ashvathsureshkumar commented Mar 24, 2026

Summary

  • Adds a Zo Computer skill that gives Zo sub-10ms semantic search via Moss
  • Uses the published @moss-tools/mcp-server npm package via MCPorter
  • Includes one-line install script for Zo terminal

Files

packages/zo-computer/zo-skill/
├── install.sh      # One-liner installer: downloads files, saves creds, configures MCPorter
├── SKILL.md        # Skill definition with Zo behavior instructions
├── README.md       # Setup guide + Zo rule (When to use / What to do format)
└── scripts/
    └── moss.sh     # CLI wrapper: load-index, search, create-index, add-docs, etc.

Install (in Zo terminal)

curl -fsSL https://raw.githubusercontent.com/usemoss/moss/main/packages/zo-computer/zo-skill/install.sh | bash -s -- <PROJECT_ID> <PROJECT_KEY>

Tools exposed

Command MCP Tool Description
load-index load_index Preload index into memory for sub-10ms queries
search query Semantic search over a loaded index
create-index create_index Create index with initial documents
list-indexes list_indexes List all indexes
add-docs add_docs Add documents to an index
delete-docs delete_docs Delete documents by ID
get-docs get_docs Retrieve documents
delete-index delete_index Delete an index

Open with Devin

Zo skill that gives Zo sub-10ms semantic search via Moss.
Uses the published @moss-tools/mcp-server package via MCPorter.

Includes install script, SKILL.md with Zo behavior rules,
and moss.sh CLI wrapper for all Moss operations.
@vercel
Copy link
Contributor

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
moss_vitepress Ready Ready Preview, Comment Mar 26, 2026 2:07am
moss-samples Ready Ready Preview, Comment Mar 26, 2026 2:07am

Request Review

devin-ai-integration[bot]

This comment was marked as resolved.

The heredoc writing MOSS_PROJECT_ID and MOSS_PROJECT_KEY to the env file
left values unquoted. When moss.sh later sources the file, bash would
interpret shell metacharacters (spaces, $(), backticks) in credential
values as commands. Single-quote the values to prevent expansion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
devin-ai-integration[bot]

This comment was marked as resolved.

The MCPorter config file receives the same MOSS_PROJECT_KEY as zo.env
but was left with default umask permissions (typically 644). Apply
chmod 600 to match the restriction already in place for zo.env.
- Use printf '%q' to write shell-safe quoted values to zo.env,
  handling single quotes, spaces, and metacharacters in credentials.
- Write mcporter.json to a temp file first and mv into place so
  the original config is preserved if jq fails on malformed input.
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.

3 participants