egnyte18.2 KB
View saved version →
---
name: egnyte
description: Work with Egnyte enterprise content and admin workflows via MCP or the @egnyte/agentic-cli CLI - search and browse files, summarize and ask questions about documents, ask Egnyte Agents, manage metadata, create share links, post comments, manage users, groups, permissions, events, notes, file locks, trash, projects, profiles, and bulk or unsupported API operations. Trigger for any Egnyte file, folder, search, AI, collaboration, or admin task.
---
# Egnyte Skill
Activate this skill whenever the user wants to work with Egnyte content or admin workflows: finding, reading, uploading, summarizing, searching, sharing, commenting, tagging files and folders, managing permissions, or running bulk and CLI-only operations.
**When activated:** pick the right tier and run read-only operations directly. If MCP has no tool for the request, use the CLI. Before anything that installs software, changes local configuration, or mutates Egnyte content, tell the user what will happen and wait for their confirmation.
## Determine your execution environment before any CLI call
The Egnyte CLI runs where the user installed it. Check which shell tool this session has:
- **`execute_command` is listed** → CoWork, with cowork-terminal-mcp set up by the user. Use it for CLI calls. The CLI authenticates from its stored login profile; do not pass tokens or other secrets in the `env` parameter.
- **`execute_command` is not listed, but Bash is available** → Claude Code. Use Bash for CLI calls.
- **Neither is available** → the CLI is not reachable from this session. Use the MCP tools. If the task needs the CLI, tell the user it can be done from Claude Code; optional CoWork terminal setup, which the user does themselves, is described in the [egnyte-for-ai README](https://github.com/egnyte/egnyte-for-ai#optional-cli-access-in-claude-desktop-cowork).
> An isolated workspace shell (for example `mcp__workspace__bash`) cannot see packages installed on the user's machine, so "command not found" there does not mean the CLI is missing. If that is the only shell available, treat the CLI as unavailable and use MCP.
---
## Tool tiers
| Tier | Activate when |
|------|--------------|
| **MCP** | Default for all interactive operations: file browsing, AI document intelligence, search, comments, links, metadata. The Egnyte MCP tools may appear under different namespace prefixes depending on the platform: `mcp__claude_ai_Egnyte__*` (CoWork prod), `mcp__claude_ai_Egnyte_QA__*` (CoWork QA), `mcp__egnyte-prod__*` (Claude Code), or an opaque UUID prefix (e.g. `mcp__439ac890-...__*`). Identify Egnyte tools by function name (`list_filesystem_by_path`, `search`, `ask_document`, etc.), not by prefix. |
| **Egnyte CLI** (`egnyte`) | Bulk/admin workflows and any endpoint not exposed by the MCP. The CLI covers `fs`, `search`, `ai`, `agents`, `links`, `users`, `groups`, `perms`, `events`, `notes`, `lock`, `trash`, `projects`, `userinfo`, `profiles`, `schema`, and `request`. In Claude Code: run commands via Bash. In CoWork: run via `execute_command` if the user has set up cowork-terminal-mcp. Follow the guardrails strictly: read-only ops run directly; mutations use `--dry-run` → confirm → `--yes`. |
| **REST** (direct `curl`/`fetch`) | Last resort only. Never use without explicit user confirmation first. |
Probe MCP: call `list_filesystem_by_path` with `path="/Shared"` (using whichever prefix is available). If it errors or is unavailable, fall back to CLI.
Check CLI with the shell tool identified above:
1. Run `egnyte whoami`. If the command is not found, ask the user whether to install the CLI. Install only after they agree, using the pinned version: `npm install -g @egnyte/agentic-cli@2.2.0`. If they decline, continue with MCP.
2. `egnyte schema --list`: confirm the CLI is installed and the current command surface is discoverable.
3. `egnyte whoami`: check whether a stored profile exists.
4. `egnyte userinfo`: if it returns a user record, proceed. I
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 9 — file references are metadata, not package contents.