Package Exports
- @tiflux/mcp
- @tiflux/mcp/server-sdk.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tiflux/mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TiFlux MCP Server
Model Context Protocol (MCP) server for TiFlux integration with Claude Code and other AI clients.
Features
- Get Tickets: Search and retrieve specific tickets by ID
- Create Tickets: Create new tickets with customizable parameters
- API Integration: Direct integration with TiFlux API
- Environment Configuration: Secure configuration with environment variables
Installation
npm install -g @tiflux/mcpUsage
With Claude Code
Add to your MCP configuration:
{
"tiflux": {
"command": "npx",
"args": ["@tiflux/mcp@latest"]
}
}With Other MCP Clients
npx @tiflux/mcp@latestConfiguration
Create a .env file with your TiFlux API credentials:
# TiFlux API Configuration
TIFLUX_API_TOKEN=your_api_token_here
TIFLUX_API_URL=https://api.tiflux.com/api/v2
# Default values for ticket creation
TIFLUX_DEFAULT_CLIENT_ID=1
TIFLUX_DEFAULT_DESK_ID=1
TIFLUX_DEFAULT_PRIORITY_ID=1
TIFLUX_DEFAULT_CATALOG_ITEM_ID=1Available Tools
get_ticket
Retrieve a specific ticket by ID.
Parameters:
ticket_id(string, required): ID of the ticket to retrieve
create_ticket
Create a new ticket in TiFlux.
Parameters:
title(string, required): Ticket titledescription(string, required): Ticket descriptionclient_id(number, optional): Client IDdesk_id(number, optional): Desk IDpriority_id(number, optional): Priority IDservices_catalogs_item_id(number, optional): Service catalog item IDstatus_id(number, optional): Status IDrequestor_name(string, optional): Requestor namerequestor_email(string, optional): Requestor emailrequestor_telephone(string, optional): Requestor phoneresponsible_id(number, optional): Responsible user IDfollowers(string, optional): Comma-separated follower emails
Development
# Clone the repository
git clone https://github.com/tiflux/tiflux-mcp.git
cd tiflux-mcp
# Install dependencies
npm install
# Copy environment configuration
cp .env.example .env
# Edit .env with your credentials
# Run the server
npm startRequirements
- Node.js >= 16.0.0
- Valid TiFlux API credentials
License
MIT
Contributing
Issues and pull requests are welcome on GitHub.
Support
For support, please contact the TiFlux development team or create an issue on GitHub.