78.0.1 • Published 12 months ago

@ibraheem4/linear-mcp v78.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Linear MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with Linear's API, enabling AI agents to manage issues, projects, and teams programmatically through the Linear platform.

Features

  • Issue Management

    • Create new issues with customizable properties (title, description, team, assignee, priority, labels)
    • List issues with flexible filtering options (team, assignee, status)
    • Update existing issues (title, description, status, assignee, priority)
  • Team Management

    • List all teams in the workspace
    • Access team details including ID, name, key, and description
  • Project Management

    • List all projects with optional team filtering
    • View project details including name, description, state, and associated teams

Prerequisites

  • Node.js (v16 or higher)
  • A Linear account with API access
  • Linear API key with appropriate permissions

Installation

  1. Clone the repository:
git clone [repository-url]
cd linear-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

  1. Obtain a Linear API key:

    • Go to your Linear workspace settings
    • Navigate to the API section
    • Generate a new API key with appropriate permissions
  2. Configure the MCP server in your settings file based on your client:

For Cline (VS Code Extension)

Location: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json

{
  "mcpServers": {
    "linear-server": {
      "command": "node",
      "args": ["/path/to/linear-server/build/index.js"],
      "env": {
        "LINEAR_API_KEY": "your-api-key-here"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

For Roo Cline

Location: ~/Library/Application Support/Roo Cline/settings/cline_mcp_settings.json

{
  "mcpServers": {
    "linear-server": {
      "command": "node",
      "args": ["/path/to/linear-server/build/index.js"],
      "env": {
        "LINEAR_API_KEY": "your-api-key-here"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

For Claude Desktop

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "linear-server": {
      "command": "node",
      "args": ["/path/to/linear-server/build/index.js"],
      "env": {
        "LINEAR_API_KEY": "your-api-key-here"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

Available Tools

create_issue

Creates a new issue in Linear.

{
  title: string;          // Required: Issue title
  description?: string;   // Optional: Issue description (markdown supported)
  teamId: string;        // Required: Team ID
  assigneeId?: string;   // Optional: Assignee user ID
  priority?: number;     // Optional: Priority (0-4)
  labels?: string[];     // Optional: Label IDs to apply
}

list_issues

Lists issues with optional filters.

{
  teamId?: string;      // Optional: Filter by team ID
  assigneeId?: string;  // Optional: Filter by assignee ID
  status?: string;      // Optional: Filter by status
  first?: number;       // Optional: Number of issues to return (default: 50)
}

update_issue

Updates an existing issue.

{
  issueId: string;       // Required: Issue ID
  title?: string;        // Optional: New title
  description?: string;  // Optional: New description
  status?: string;      // Optional: New status
  assigneeId?: string;  // Optional: New assignee ID
  priority?: number;    // Optional: New priority (0-4)
}

list_teams

Lists all teams in the workspace. No parameters required.

list_projects

Lists all projects with optional filtering.

{
  teamId?: string;     // Optional: Filter by team ID
  first?: number;      // Optional: Number of projects to return (default: 50)
}

Development

For development with auto-rebuild:

npm run watch

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. The project includes the MCP Inspector for debugging:

npm run inspector

This will provide a URL to access debugging tools in your browser.

Error Handling

The server includes comprehensive error handling for:

  • Invalid API keys
  • Missing required parameters
  • Linear API errors
  • Invalid tool requests

All errors are properly formatted and returned with descriptive messages to help diagnose issues.

Technical Details

Built with:

  • TypeScript
  • Linear SDK (@linear/sdk v37.0.0)
  • MCP SDK (@modelcontextprotocol/sdk v0.6.0)

The server uses stdio for communication and implements the Model Context Protocol for seamless integration with AI agents.

78.0.1

12 months ago

78.0.0

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

37.9.0

12 months ago

37.7.0

12 months ago

37.6.0

12 months ago

37.5.0

12 months ago

77.0.0

12 months ago

76.0.0

12 months ago

75.11.0

12 months ago

75.10.0

12 months ago

75.9.0

12 months ago

75.8.0

12 months ago

75.5.0

12 months ago

75.4.0

12 months ago

75.0.0

12 months ago

74.0.0

12 months ago

73.0.0

12 months ago

72.0.0

12 months ago

70.0.0

12 months ago

68.0.0

12 months ago

67.0.0

12 months ago

66.0.0

12 months ago

65.0.0

12 months ago

63.0.0

12 months ago

62.0.0

12 months ago

61.0.0

12 months ago

59.0.0

12 months ago

58.0.0

12 months ago

57.0.0

12 months ago

56.0.0

12 months ago

55.0.0

12 months ago

54.0.0

12 months ago

53.0.0

12 months ago

52.0.0

12 months ago

51.0.0

12 months ago

50.0.0

12 months ago

49.0.0

12 months ago

48.0.0

12 months ago

47.0.0

12 months ago

46.0.0

12 months ago

45.0.0

12 months ago

44.0.0

12 months ago

43.0.0

12 months ago

42.0.0

12 months ago

41.0.0

12 months ago

40.0.0

12 months ago

39.0.0

12 months ago

38.0.0

12 months ago

37.4.11

12 months ago

37.4.10

12 months ago

37.4.8

12 months ago

37.4.7

12 months ago

37.4.6

12 months ago

37.4.5

12 months ago

37.4.4

12 months ago

37.4.1

12 months ago

37.4.0

12 months ago

37.3.16

12 months ago

37.3.14

12 months ago

37.3.13

12 months ago

37.3.12

12 months ago

37.3.11

12 months ago

37.3.10

12 months ago

37.3.9

12 months ago

37.3.8

12 months ago

37.3.7

12 months ago

37.3.6

12 months ago

37.3.5

12 months ago

37.3.4

12 months ago

37.3.3

12 months ago

37.3.2

12 months ago

37.3.0

12 months ago

37.2.0

12 months ago

37.1.0

12 months ago

37.0.10

12 months ago

37.0.9

12 months ago

37.0.8

12 months ago

37.0.7

12 months ago

37.0.6

12 months ago

37.0.5

12 months ago

37.0.3

12 months ago

37.0.2

12 months ago

37.0.0

12 months ago