docs/integrations/junie.md
How to use beads with Junie (JetBrains AI Agent).
bd setup junie
This creates:
.junie/guidelines.md - Agent instructions for beads workflow.junie/mcp/mcp.json - MCP server configurationbd setup junie --check
.junie/guidelines.md for workflow contextbd CLI commands or MCP toolsbd dolt push to push changes to Dolt remote.junie/guidelines.md)Contains workflow instructions that Junie reads automatically:
.junie/mcp/mcp.json){
"mcpServers": {
"beads": {
"command": "uvx",
"args": ["beads-mcp"]
}
}
}
See MCP Server for the server's tool catalog and other install options (pip/pipx).
You can also use the bd CLI directly:
# Always include description for context
bd create "Fix authentication bug" \
--description="Login fails with special characters in password" \
-t bug -p 1 --json
# Link discovered issues
bd create "Found SQL injection" \
--description="User input not sanitized in query builder" \
--deps discovered-from:bd-42 --json
# Find ready work
bd ready --json
# Start work
bd update bd-42 --claim --json
# Complete work
bd close bd-42 --reason "Fixed in commit abc123" --json
# List open issues
bd list --status open --json
# Show issue details
bd show bd-42 --json
# Check blocked issues
bd blocked --json
# ALWAYS run at session end
bd dolt push
--jsonbd list --json # Parse programmatically
bd create "Task" --json # Get issue ID from output
bd show bd-42 --json # Structured data
# Good
bd create "Fix auth bug" \
--description="Login fails when password contains quotes" \
-t bug -p 1 --json
# Bad - no context for future work
bd create "Fix auth bug" -t bug -p 1 --json
# When you discover issues during work
bd create "Found related bug" \
--deps discovered-from:bd-current --json
# ALWAYS run before ending
bd dolt push
# Check setup
bd setup junie --check
# Reinstall if needed
bd setup junie
# Verify MCP config exists and points at the beads-mcp server
cat .junie/mcp/mcp.json
# Verify the server package is installed
pip show beads-mcp
# Force push
bd dolt push
# Check system health
bd doctor
# Initialize beads
bd init --quiet
bd setup junie --remove
This removes:
.junie/guidelines.md.junie/mcp/mcp.json.junie/mcp/ and .junie/ directories