add
omnidev add provides shortcuts for updating omni.toml and syncing.
omnidev add cap
Section titled “omnidev add cap”Add a capability source and enable it in the active profile.
GitHub Sources
Section titled “GitHub Sources”omnidev add cap my-cap --github user/repoWith a subdirectory:
omnidev add cap my-cap --github user/repo --path plugins/subdirPinning to a version
Section titled “Pinning to a version”Use --pin to automatically detect and pin to the current version:
omnidev add cap my-cap --github user/repo --pinThis will:
- Clone the repository to detect the version
- Check
capability.tomlfor a version field - Fall back to the current commit hash if no version is found
The resulting entry in omni.toml will look like:
[capabilities.sources]my-cap = { source = "github:user/repo", version = "v1.0.0" }Without --pin, the default version = "latest" is used.
Local Sources
Section titled “Local Sources”Add a capability from a local directory:
omnidev add cap my-cap --local ./capabilities/my-capID Inference
Section titled “ID Inference”If you omit the capability ID, it will be inferred automatically:
- Local sources: Reads the
idfromcapability.toml, or uses the directory name - GitHub sources: Uses the repository name or last path segment
# Infers "skills" from repo nameomnidev add cap --github expo/skills
# Infers "my-cap" from capability.toml or directory nameomnidev add cap --local ./capabilities/my-capomnidev add mcp
Section titled “omnidev add mcp”Add an MCP server and enable it.
omnidev add mcp filesystem --command npx --args "-y @modelcontextprotocol/server-filesystem /path"Tip: for package-based MCP servers, prefer pinning an explicit version (e.g., @modelcontextprotocol/server-filesystem@1.2.3) rather than relying on “latest”.
HTTP transport:
omnidev add mcp notion --transport http --url https://mcp.notion.com/mcpWarning: for remote http MCP servers, you generally can’t pin the server implementation from the client side. Only use providers you trust to handle your data securely.
After adding, OmniDev automatically runs omnidev sync.