
slack linear bot
一个集成 Linear 的 Slack 机器人,用于搜索和跟踪问题。
Repository Info
About This Server
一个集成 Linear 的 Slack 机器人,用于搜索和跟踪问题。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Slack Linear Bot
This project is a Slack bot designed to integrate with Linear for issue tracking. It listens for messages in channels it's invited to or direct messages, interprets them as search queries for Linear issues, and responds with the findings.
Setup
-
Clone the repository (if applicable):
git clone <repository-url> cd slack-linear-bot -
Install dependencies: Make sure you have Node.js and npm installed.
npm install -
Configure Environment Variables: Create a
.envfile in the root directory of the project. Add the following environment variables with your credentials:# Slack App Credentials SLACK_BOT_TOKEN=xoxb-... SLACK_SIGNING_SECRET=... SLACK_APP_TOKEN=xapp-... # Linear API Key LINEAR_API_KEY=lin_api_... # Smithery API Key (not required if using local MCP) SMITHERY_API_KEY=smy_... # Local MCP Configuration (optional) # Set to "true" to use local MCP instead of Smithery USE_LOCAL_MCP=true # Override the default local MCP URL if needed LOCAL_MCP_URL=ws://localhost:3000/mcpSLACK_BOT_TOKEN: Your Slack bot token (starts withxoxb-).SLACK_SIGNING_SECRET: Your Slack app's signing secret.SLACK_APP_TOKEN: Your Slack app-level token for Socket Mode (starts withxapp-).LINEAR_API_KEY: Your Linear API key for authentication.SMITHERY_API_KEY: Your Smithery API key (only required when not using local MCP).USE_LOCAL_MCP: Set to "true" to connect directly to a local Linear MCP server.LOCAL_MCP_URL: The WebSocket URL of your local MCP server (defaults to ws://localhost:3000/mcp).
You can find the Slack values in your Slack app's configuration page under "OAuth & Permissions" and "Basic Information". Ensure your bot has the necessary scopes (like
app_mentions:read,chat:write,channels:history,groups:history,im:history,mpim:history) and is configured to use Socket Mode.
Running the Bot
There are two main ways to run the bot:
-
Development Mode (using
ts-nodefor automatic reloading): This command usests-nodeto run the TypeScript source directly and will restart automatically on file changes. Ideal for development.npm run dev -
Production Mode (compile and run JavaScript): First, compile the TypeScript code to JavaScript:
npm run buildThen, run the compiled code:
npm run start
Once the bot is running, it will connect to Slack using Socket Mode and print "⚡️ Bolt app is running using Socket Mode!".
MCP Configuration
The bot can connect to Linear through either:
- Smithery (default): Uses Smithery as a middleware to connect to Linear's MCP server.
- Direct Local MCP: Connects directly to a locally-running Linear MCP server.
To use a local MCP server:
- Make sure your local Linear MCP server is running (typically at ws://localhost:3000/mcp)
- Set
USE_LOCAL_MCP=truein your.envfile - You don't need to provide a
SMITHERY_API_KEYwhen using local MCP
Usage
- Invite the bot to a Slack channel or send it a direct message.
- Send a message containing the text you want to search for in your Linear issues.
- The bot will acknowledge the message and then respond in a thread with the search results found in Linear.
Quick Start
Clone the repository
git clone https://github.com/wkoutre/slack-linear-botInstall dependencies
cd slack-linear-bot
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.