@jive-ai/cli 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +13 -197
- package/docs/auth.md +378 -0
- package/docs/getting-started.md +263 -0
- package/docs/init.md +591 -0
- package/docs/mcp.md +899 -0
- package/docs/subagents.md +702 -0
- package/docs/sync.md +673 -0
- package/docs/team.md +514 -0
- package/package.json +3 -2
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# Getting Started with Jive CLI
|
|
2
|
+
|
|
3
|
+
Jive CLI is a command-line tool for managing MCP (Model Context Protocol) servers, tools, and subagents across teams. It integrates with Claude Code to provide team-based collaboration features for AI development.
|
|
4
|
+
|
|
5
|
+
## What is Jive?
|
|
6
|
+
|
|
7
|
+
Jive enables teams to:
|
|
8
|
+
- Share and collaborate on **subagents** (custom AI agents with specialized prompts)
|
|
9
|
+
- Share and manage **MCP servers** (tools that extend Claude's capabilities)
|
|
10
|
+
- Track usage and telemetry across team projects
|
|
11
|
+
- Synchronize AI resources across team members
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Node.js installed (for running MCP servers)
|
|
16
|
+
- Claude Code installed
|
|
17
|
+
- A Jive account (created in the app, or via `jive signup`)
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
### 1. Install Jive CLI
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install -g @jive-ai/cli
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 2. Create an Account
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
jive signup
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
You'll be prompted for:
|
|
34
|
+
- Email address
|
|
35
|
+
- Password (minimum 8 characters)
|
|
36
|
+
|
|
37
|
+
Your credentials are securely stored in `~/.jive/credentials.json`.
|
|
38
|
+
|
|
39
|
+
### 3. Create or Join a Team
|
|
40
|
+
|
|
41
|
+
Create a new team:
|
|
42
|
+
```bash
|
|
43
|
+
jive team create
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Or accept an invitation to join an existing team (invitations are sent via email).
|
|
47
|
+
|
|
48
|
+
### 4. Initialize Jive in Your Project
|
|
49
|
+
|
|
50
|
+
Navigate to your project directory and run:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
jive init
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
This command will:
|
|
57
|
+
- Scan and upload any existing MCP servers from `.mcp.json`
|
|
58
|
+
- Scan and upload any existing subagents from `.claude/agents/*.md`
|
|
59
|
+
- Add the `jive-mcp` server to your MCP configuration
|
|
60
|
+
- Install the telemetry plugin for tracking tool usage
|
|
61
|
+
- Create project configuration files in `.jive/`
|
|
62
|
+
|
|
63
|
+
### 5. Restart Claude Code
|
|
64
|
+
|
|
65
|
+
After initialization, restart Claude Code to load the new MCP server and telemetry plugin.
|
|
66
|
+
|
|
67
|
+
## Project Structure
|
|
68
|
+
|
|
69
|
+
After initialization, Jive creates the following structure:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
your-project/
|
|
73
|
+
├── .jive/
|
|
74
|
+
│ ├── config.json # Project configuration (team ID, API settings)
|
|
75
|
+
│ └── sync.json # Sync state tracking
|
|
76
|
+
├── .claude/
|
|
77
|
+
│ ├── agents/
|
|
78
|
+
│ │ └── subagent-runner.md # Dynamic subagent loader
|
|
79
|
+
│ └── plugins/
|
|
80
|
+
│ └── jive-mcp-telemetry/ # Telemetry tracking plugin
|
|
81
|
+
└── .mcp.json # MCP server configurations (includes jive-mcp)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Important:** Add these to your `.gitignore`:
|
|
85
|
+
```
|
|
86
|
+
.jive/config.json
|
|
87
|
+
.jive/sync.json
|
|
88
|
+
.claude/plugins/
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
These are automatically added by `jive init`.
|
|
92
|
+
|
|
93
|
+
## Core Concepts
|
|
94
|
+
|
|
95
|
+
### Subagents
|
|
96
|
+
|
|
97
|
+
Subagents are custom AI agents defined by markdown files with YAML frontmatter. They provide specialized prompts and behaviors for specific tasks.
|
|
98
|
+
|
|
99
|
+
**Example subagent file** (`.claude/agents/code-reviewer.md`):
|
|
100
|
+
```markdown
|
|
101
|
+
---
|
|
102
|
+
name: code-reviewer
|
|
103
|
+
description: Reviews code for best practices and potential issues
|
|
104
|
+
jive-id: "123"
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
You are a code reviewer. Analyze the provided code and:
|
|
108
|
+
1. Identify potential bugs or issues
|
|
109
|
+
2. Suggest improvements for readability
|
|
110
|
+
3. Check for security vulnerabilities
|
|
111
|
+
4. Recommend best practices
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### MCP Servers
|
|
115
|
+
|
|
116
|
+
MCP servers extend Claude's capabilities by providing additional tools. They can:
|
|
117
|
+
- Access external APIs
|
|
118
|
+
- Read and write files
|
|
119
|
+
- Execute commands
|
|
120
|
+
- Interact with databases
|
|
121
|
+
- And much more
|
|
122
|
+
|
|
123
|
+
Jive helps teams share MCP server configurations across projects.
|
|
124
|
+
|
|
125
|
+
### Teams
|
|
126
|
+
|
|
127
|
+
Teams are the organizational unit in Jive. All subagents and MCP servers belong to a team. Team members can:
|
|
128
|
+
- Access shared subagents and MCP servers
|
|
129
|
+
- Collaborate on AI resources
|
|
130
|
+
- View usage analytics and telemetry
|
|
131
|
+
|
|
132
|
+
## Common Workflows
|
|
133
|
+
|
|
134
|
+
### Sharing a New Subagent
|
|
135
|
+
|
|
136
|
+
1. Create a subagent file locally:
|
|
137
|
+
```bash
|
|
138
|
+
jive subagents create
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
2. Push it to your team:
|
|
142
|
+
```bash
|
|
143
|
+
jive subagents push
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
3. Team members can pull it:
|
|
147
|
+
```bash
|
|
148
|
+
jive subagents pull
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Sharing a New MCP Server
|
|
152
|
+
|
|
153
|
+
1. Add the server to your team:
|
|
154
|
+
```bash
|
|
155
|
+
jive mcp add my-server
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
2. Team members can pull it:
|
|
159
|
+
```bash
|
|
160
|
+
jive mcp pull
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Keeping Resources in Sync
|
|
164
|
+
|
|
165
|
+
Pull the latest resources from your team:
|
|
166
|
+
```bash
|
|
167
|
+
jive sync
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Check the status of your local resources:
|
|
171
|
+
```bash
|
|
172
|
+
jive status
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Switching Between Teams
|
|
176
|
+
|
|
177
|
+
If you're a member of multiple teams:
|
|
178
|
+
|
|
179
|
+
1. List your teams:
|
|
180
|
+
```bash
|
|
181
|
+
jive team list
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
2. Switch to a different team:
|
|
185
|
+
```bash
|
|
186
|
+
jive team switch
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Configuration
|
|
190
|
+
|
|
191
|
+
### API URL
|
|
192
|
+
|
|
193
|
+
By default, Jive connects to `https://next.getjive.app`. You can override this with the `JIVE_API_URL` environment variable:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
export JIVE_API_URL=https://your-custom-api.com
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Credentials Location
|
|
200
|
+
|
|
201
|
+
Credentials are stored in `~/.jive/credentials.json` with secure file permissions (mode 0600).
|
|
202
|
+
|
|
203
|
+
### Project Configuration
|
|
204
|
+
|
|
205
|
+
Each project has its own configuration in `.jive/config.json`:
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"activeTeamId": "team-123",
|
|
209
|
+
"apiUrl": "https://next.getjive.app",
|
|
210
|
+
"telemetry": {
|
|
211
|
+
"enabled": true
|
|
212
|
+
},
|
|
213
|
+
"lastSync": "2025-01-15T10:30:00.000Z"
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Troubleshooting
|
|
218
|
+
|
|
219
|
+
### Check Installation Health
|
|
220
|
+
|
|
221
|
+
Run the doctor command to diagnose issues:
|
|
222
|
+
```bash
|
|
223
|
+
jive doctor
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
This checks:
|
|
227
|
+
- Authentication status
|
|
228
|
+
- Project initialization
|
|
229
|
+
- MCP server configuration
|
|
230
|
+
- Subagent runner installation
|
|
231
|
+
- Telemetry plugin setup
|
|
232
|
+
- API connectivity
|
|
233
|
+
- Team membership
|
|
234
|
+
|
|
235
|
+
### Common Issues
|
|
236
|
+
|
|
237
|
+
**"Not authenticated"**
|
|
238
|
+
- Run `jive login` to authenticate
|
|
239
|
+
|
|
240
|
+
**"Project not initialized"**
|
|
241
|
+
- Run `jive init` in your project directory
|
|
242
|
+
|
|
243
|
+
**"Cannot find team"**
|
|
244
|
+
- Ensure you've created or joined a team with `jive team create` or accepted an invitation
|
|
245
|
+
|
|
246
|
+
**MCP server not loading**
|
|
247
|
+
- Restart Claude Code after running `jive init`
|
|
248
|
+
- Check `.mcp.json` for the `jive-mcp` entry
|
|
249
|
+
- Run `jive doctor` to verify configuration
|
|
250
|
+
|
|
251
|
+
## Next Steps
|
|
252
|
+
|
|
253
|
+
- Learn about [Authentication Commands](./auth.md)
|
|
254
|
+
- Set up your [Team](./team.md)
|
|
255
|
+
- Explore [Subagent Management](./subagents.md)
|
|
256
|
+
- Configure [MCP Servers](./mcp.md)
|
|
257
|
+
- Master [Synchronization](./sync.md)
|
|
258
|
+
|
|
259
|
+
## Getting Help
|
|
260
|
+
|
|
261
|
+
- Run `jive --help` to see all available commands
|
|
262
|
+
- Run `jive <command> --help` for command-specific help
|
|
263
|
+
- Report issues at: https://github.com/anthropics/jive-cli/issues
|