CodebaseHQ MCP Server
An MCP server that enables users to manage CodebaseHQ tickets and track project activity through natural language. It supports searching tickets, viewing discussions, and performing updates such as creating new tickets or changing assignments and statuses.
README
CodebaseHQ MCP Server
An MCP (Model Context Protocol) server that gives Claude Code access to CodebaseHQ — a project management and ticketing platform. Read, search, create, and update tickets directly from Claude Code or any MCP-compatible client.
Features
- List projects — browse all projects in your CodebaseHQ account
- Search tickets — full query syntax (status, assignee, priority, type, etc.) with pagination
- View ticket details — get complete ticket info with status/priority IDs for updates
- Read comments — full conversation thread with author names and file attachments
- Activity feed — see recent project activity (who created/updated what)
- List team members — discover user IDs for assignment
- Create tickets — create new tickets with type, priority, and assignee
- Update tickets — add comments, change status/priority/assignee, rename tickets
Prerequisites
- Node.js 18+
- pnpm (or npm/yarn)
- Claude Code or another MCP-compatible client
- A CodebaseHQ account with API access
Setup
1. Get your API credentials
Go to CodebaseHQ → Settings → My Profile and note:
- API Username — format:
account/username(e.g.mycompany/john) - API Key — 40-character string
2. Set environment variables
Add to your shell config (e.g. ~/.zshrc, ~/.bashrc):
export CODEBASEHQ_ACCOUNT="your-account" # the part before /
export CODEBASEHQ_USERNAME="your-username" # the part after /
export CODEBASEHQ_API_KEY="your-api-key"
export CODEBASEHQ_DEFAULT_PROJECT="my-project" # optional — skip the project param in every tool call
3. Clone and build
git clone https://github.com/bdteo/CodebaseHQ.git
cd CodebaseHQ
pnpm install
pnpm run build
4. Register with Claude Code
Pick one of the methods below.
Option A: CLI command (global)
claude mcp add codebasehq -- node /absolute/path/to/CodebaseHQ/dist/index.js
The server inherits environment variables from your shell, so the CODEBASEHQ_* vars you set in step 2 are picked up automatically.
Option B: Global config file
Add to ~/.claude.json:
{
"mcpServers": {
"codebasehq": {
"command": "node",
"args": ["/absolute/path/to/CodebaseHQ/dist/index.js"]
}
}
}
Option C: Project-scoped config
Create a .mcp.json in your project root (useful for sharing with a team):
{
"mcpServers": {
"codebasehq": {
"command": "node",
"args": ["/absolute/path/to/CodebaseHQ/dist/index.js"],
"env": {
"CODEBASEHQ_ACCOUNT": "${CODEBASEHQ_ACCOUNT}",
"CODEBASEHQ_USERNAME": "${CODEBASEHQ_USERNAME}",
"CODEBASEHQ_API_KEY": "${CODEBASEHQ_API_KEY}",
"CODEBASEHQ_DEFAULT_PROJECT": "${CODEBASEHQ_DEFAULT_PROJECT}"
}
}
}
}
The ${VAR} syntax references your shell environment variables — no secrets in the file.
5. Verify
Restart Claude Code, then ask:
"List my CodebaseHQ projects"
If the server connects, you'll see your projects. If not, check Troubleshooting.
Tools
| Tool | Type | Description |
|---|---|---|
list_projects |
Read | List all projects with ticket counts |
search_tickets |
Read | Search/list tickets with query syntax and pagination |
get_ticket |
Read | Full ticket detail by ID (includes field IDs for updates) |
get_ticket_notes |
Read | Comments, change history, and attachments |
get_activity |
Read | Recent project activity feed |
list_users |
Read | Team members with IDs for assignment |
create_ticket |
Write | Create a new ticket |
update_ticket |
Write | Add comment and/or change status, priority, assignee |
Search Query Syntax
The search_tickets tool supports CodebaseHQ's query syntax:
status:open # by status
assignee:me # your tickets
priority:high # by priority
type:bug # Bug, Feature, or Task
category:General # by category
sort:updated order:desc # sorting
not-status:closed # negation
assignee:me status:open # combine filters
Usage Examples
Ask Claude things like:
- "Show me all open tickets"
- "What tickets are assigned to me?"
- "Show me ticket #23 and its comments"
- "What happened recently on the project?"
- "Create a bug ticket for the login page issue"
- "Mark ticket #5 as closed with a comment"
- "Who's on the team? Assign ticket #10 to Mario"
Architecture
src/
├── index.ts # MCP server, tool definitions, request handlers
├── codebasehq-api.ts # HTTP client (JSON responses, XML write bodies, rate limiting)
└── types.ts # TypeScript types for API responses
- Transport: stdio (stdin/stdout)
- API: CodebaseHQ REST API v3 (
api3.codebasehq.com) - Auth: HTTP Basic (
account/username:api_key) - Responses: JSON (read), XML (write bodies)
- Rate limiting: Automatic retry with backoff on 429
- Runtime dependencies:
@modelcontextprotocol/sdkonly
Troubleshooting
"Invalid CodebaseHQ credentials or network error"
- Double-check your
CODEBASEHQ_ACCOUNT,CODEBASEHQ_USERNAME, andCODEBASEHQ_API_KEYvalues - The account/username come from splitting the API Username on
/ - Verify your API key in CodebaseHQ → Settings → My Profile
Server not showing in Claude Code
- Run
claude mcp listto check connection status - Make sure the path to
dist/index.jsis absolute - Rebuild with
pnpm run buildafter any source changes - Restart Claude Code after config changes
Rate limited
- The server automatically retries after the delay
- Reduce the
limitparameter in queries if hitting limits frequently
Disclaimer
This project is not affiliated with, endorsed by, or associated with aTech Media Ltd / Krystal Hosting Ltd (the makers of CodebaseHQ). It is an independent, open-source API client. You need your own CodebaseHQ account and API credentials to use it.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。