Belifoa
FreeNot checked⚡ High-performance, compact Linear client & MCP server for AI agents. Reduces prompt context payload by 70–80% with persistent auth, CLI, skills & git hooks.
About
⚡ High-performance, compact Linear client & MCP server for AI agents. Reduces prompt context payload by 70–80% with persistent auth, CLI, skills & git hooks.
README
Belifoa ("Better Linear for Agent") is an agent-first Linear client and Model Context Protocol (MCP) server engineered to solve short authentication expirations, heavy GraphQL payload token bloat, and tool selection sprawl when AI agents interact with Linear.
📌 Table of Contents
- 🌟 Why Belifoa?
- ✨ Key Features
- 📊 Objective Benchmarking Results
- 🚀 Quick Start & CLI Usage
- 🛠️ MCP Server Integration
- 🛡️ Profile Resolution & Agent Isolation
- 🧩 Skills, Plugins & Git Hooks
- 🧪 Testing & Benchmarks
- 📄 License
🌟 Why Belifoa?
Standard Linear integrations for LLM agents suffer from three major inefficiencies:
- Short-Lived Auth Sessions: Standard OAuth integrations expire frequently, breaking long-running autonomous AI agent loops.
- Heavy Payload Token Bloat: Raw Linear GraphQL API responses contain thousands of tokens of unnecessary metadata (
__typename, nested node arrays, hex colors, avatar URLs) that consume agent context windows. - Tool Sprawl & Multi-Turn Overhead: 30+ fine-grained tools confuse LLM tool-calling logic and increase multi-turn latency.
Belifoa eliminates these bottlenecks:
- Persistent Personal API Key Auth: Uses Linear Personal API Keys (
lin_api_...) that stay valid continuously unless revoked. - 70–80% Prompt Token Reduction: Formats Linear data into clean, compact CLI tables, Markdown cards, or minified JSON optimized for token efficiency.
- Unified Multimodal Access: One core tool usable via CLI, MCP Server, Antigravity Skill, Plugin, and Git Hooks.
✨ Key Features
- ⚡ Token-Efficient Context Formatting: CLI defaults to ANSI-styled
cli_table, while MCP tools default to lightweightmarkdownandcompact_jsonto maximize token budget. - 🔐 Multi-Profile & Workspace Isolation: Manage multiple Linear accounts and team profiles seamlessly without cross-project state leakage.
- 🚀 Zero-Installation Direct Execution: Run instantly using
bun x github:ImBIOS/belifoa#canaryorpnpm add github:ImBIOS/belifoa. - 📦 Bulk Import & Batch Operations: Easily create or import issues in bulk from structured JSON files.
- 📈 Built-In Benchmarking Suite: Measure exact byte size and estimated token footprint savings against official Linear MCP tools.
📊 Objective Benchmarking Results
Belifoa includes an automated benchmarking suite to measure payload optimization performance:
| Scenario | Paradigm / Format | Payload Size | Est. Tokens | Context Savings (%) |
|---|---|---|---|---|
| Issue Search | Official Raw Linear MCP (JSON) | 6,437 B | ~1,694 | 0% (Baseline) |
| Belifoa Compact JSON | 562 B | ~147 | 91% | |
| Belifoa Markdown Table | 764 B | ~200 | 88% | |
| Issue Detail | Official Raw Linear MCP (JSON) | 3,369 B | ~887 | 0% (Baseline) |
| Belifoa Compact JSON | 1,317 B | ~347 | 61% | |
| Belifoa Markdown Card | 1,279 B | ~337 | 62% |
(For full benchmark methodology, see BENCHMARK_RESULTS.md)
🚀 Quick Start & CLI Usage
1. Direct Execution via GitHub
You can execute Belifoa directly from GitHub without publishing to npm:
# Set long-lived Linear API key
bun x github:ImBIOS/belifoa#canary auth set <lin_api_...>
# Check authentication status
bun x github:ImBIOS/belifoa#canary auth status
# List issues assigned to you
bun x github:ImBIOS/belifoa#canary my-issues
# Search issues by query and team
bun x github:ImBIOS/belifoa#canary search "auth bug" --team ENG
# Inspect issue details
bun x github:ImBIOS/belifoa#canary issue ENG-123
# Create issue with full metadata fields
bun x github:ImBIOS/belifoa#canary create --team ENG \
--title "Implement Token Cache" \
--description "Optimize context payload retention" \
--priority 1 \
--assignee "[email protected]" \
--project "Q3 Security" \
--estimate 5 \
--due-date "2026-08-15" \
--labels "backend,security" \
--state "In Progress"
# Update an existing issue and add a comment
bun x github:ImBIOS/belifoa#canary update ENG-123 --state "In Progress" --assignee me -c "Started working on fix"
# Close or resolve an issue
bun x github:ImBIOS/belifoa#canary close ENG-123 -c "Fixed in PR #42"
# List active team labels
bun x github:ImBIOS/belifoa#canary labels
# Bulk import issues from JSON file
bun x github:ImBIOS/belifoa#canary import --file tasks.json --team ENG
2. Global Terminal Linking
To make belifoa available globally in your PATH:
# Clone repository and link globally:
pnpm link --global # or bun link
# Verify global binary:
belifoa --version
belifoa my-issues
🛠️ MCP Server Integration
Belifoa runs natively as a Model Context Protocol (MCP) server for AI code editors and autonomous agent frameworks like Cursor, Antigravity, OpenCode, and Claude Desktop.
MCP Server Configuration (mcp_config.json / opencode.jsonc / .cursor/mcp.json):
{
"mcpServers": {
"belifoa": {
"command": "bun",
"args": ["x", "github:ImBIOS/belifoa#canary", "mcp"],
"env": {
"LINEAR_API_KEY": "lin_api_your_key_here"
}
}
}
}
🛡️ Profile Resolution & Agent Isolation
To support concurrent AI agents operating across multiple projects and teams without profile conflicts, Belifoa enforces a strict precedence hierarchy when resolving workspace credentials:
- CLI / MCP Parameter:
--profile <name>flag orprofileNametool argument. - Environment Variable:
BELIFOA_PROFILEenvironment variable. - Project-Local Config:
.belifoarc.jsonor.belifoafile in current working directory tree (process.cwd()). - Global Config Fallback:
activeProfiledefined in~/.config/belifoa/config.json.
🧩 Skills, Plugins & Git Hooks
- Antigravity Skill: Integrate skills/linear-agent/SKILL.md directly into your AI agent's skill directory for autonomous issue lookup and updates.
- Git Commit Hooks: Automate issue linking and status sync on git commits and branch pushes.
🧪 Testing & Benchmarks
Run unit tests and verification builds locally:
# Run unit tests
pnpm test
# Run build verification
pnpm run build
# Run benchmark suite
pnpm run benchmark
🏷️ Keywords & Search Tags
linear • linear-api • mcp • mcp-server • model-context-protocol • ai-agent • agentic-ai • antigravity • token-optimization • context-window • cli • bun • typescript • linear-agent • developer-tools
📄 License
MIT © ImBIOS
Installing Belifoa
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ImBIOS/belifoaFAQ
Is Belifoa MCP free?
Yes, Belifoa MCP is free — one-click install via Unyly at no cost.
Does Belifoa need an API key?
No, Belifoa runs without API keys or environment variables.
Is Belifoa hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Belifoa in Claude Desktop, Claude Code or Cursor?
Open Belifoa on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Belifoa with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
