This skill should be used when the user asks to "manage stream processors", "list processors", "start processor", "stop processor", "show workspaces", or discusses MongoDB Atlas Stream Processing, ASP pipelines, or streaming data workloads.
This skill manages MongoDB Atlas Stream Processing (ASP) pipelines using the sp CLI tool. Use natural language to create, deploy, monitor, and optimize streaming data workloads.
Use this path pattern for all sp commands:
~/.claude/plugins/cache/asp-skill/asp/*/tools/sp/sp <command>
| Action | Command |
|---|---|
| List workspaces | ~/.claude/plugins/cache/asp-skill/asp/*/tools/sp/sp workspaces list |
| List processors | ~/.claude/plugins/cache/asp-skill/asp/*/tools/sp/sp processors list |
| Start processor |
~/.claude/plugins/cache/asp-skill/asp/*/tools/sp/sp processors start -p <name> --auto| Stop processor | ~/.claude/plugins/cache/asp-skill/asp/*/tools/sp/sp processors stop -p <name> |
| Get stats | ~/.claude/plugins/cache/asp-skill/asp/*/tools/sp/sp processors stats -p <name> |
| Tier advice | ~/.claude/plugins/cache/asp-skill/asp/*/tools/sp/sp processors tier-advise -p <name> |
Before using, ensure the plugin has a valid config.txt in its directory:
PUBLIC_KEY=your_atlas_public_key
PRIVATE_KEY=your_atlas_private_key
PROJECT_ID=your_atlas_project_id
SP_WORKSPACE_NAME=your_workspace_name
Copy from config.txt.example and fill in your Atlas API credentials.
| Command | Description |
|---|---|
sp workspaces list | List all Stream Processing workspaces |
sp workspaces create <name> | Create a new workspace |
sp workspaces details <name> | Get workspace details |
sp workspaces delete <name> | Delete a workspace |
| Command | Description |
|---|---|
sp processors list | List all processors with status/tier |
sp processors create -p <name> | Create processor from JSON file |
sp processors start -p <name> --auto | Start with auto tier selection |
sp processors start -p <name> -t SP10 | Start with specific tier |
sp processors stop -p <name> | Stop a processor |
sp processors stats -p <name> | Get processor statistics |
sp processors tier-advise -p <name> | Get tier recommendation |
sp processors drop -p <name> | Delete a processor |
| Command | Description |
|---|---|
sp instances connections list | List connections |
sp instances connections create | Create from connections.json |
sp instances connections test | Test connections |
sp instances connections delete <name> | Delete a connection |
| Command | Description |
|---|---|
sp processors profile -p <name> --duration 300 | Profile for 5 minutes |
sp processors profile -p <name> --continuous | Continuous monitoring |
| Command | Description |
|---|---|
sp collections count -c db.collection | Count documents in a collection |
sp collections query -c db.collection -l 10 | Query documents (limit 10) |
sp collections query -c db.collection -f '{"status":"active"}' | Query with filter |
sp collections list -d dbname | List all collections in database |
sp collections ttl -c db.collection -s 3600 -f _ts | Set TTL index (1 hour) |
sp collections index -c db.collection --list | List indexes on collection |
| Command | Description |
|---|---|
sp materialized_views list | List all materialized views |
sp materialized_views create <name> | Create a materialized view |
sp materialized_views drop <name> | Drop a materialized view |
IMPORTANT: Before creating any processor, consult the official MongoDB ASP examples repo for best practices and valid patterns: