npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@loopstack/mcp-linear-example-workflow

v0.3.3

Published

Example workflow that connects a chat agent to Linear's hosted MCP server through @loopstack/mcp-module

Readme


title: MCP Linear Example description: Example connecting a Loopstack chat agent to Linear's hosted MCP server — mcp_list_tools, mcp_call, MCP tool config with allowedHosts

@loopstack/mcp-linear-example-workflow

Demonstrates how to connect a Loopstack chat agent to Linear's hosted MCP server using @loopstack/mcp-module.

By using this example you'll get...

  • A parent workflow that launches ChatAgentWorkflow with mcp_list_tools and mcp_call
  • A reference MCP tool config with allowedHosts and hostHeaderEnv
  • A safe, minimal pattern for talking to a hosted MCP server with OAuth-style auth

Workspace registration required. Because this example uses ChatAgentWorkflow as a sub-workflow, MCP tools must also be registered on your workspace with the same tool config — not only on McpLinearExampleWorkflow. While the chat agent runs, tool resolution uses the executing workflow (ChatAgentWorkflow) and then the workspace. See @loopstack/mcp-module — Registering the tools. The app template shows this in default.workspace.ts.

Installation

npm install @loopstack/mcp-linear-example-workflow

The package depends on @loopstack/mcp-module and @loopstack/agent.

Then register the module in your app:

import { StudioApp } from '@loopstack/common';
import { McpLinearExampleModule, McpLinearExampleWorkflow } from '@loopstack/mcp-linear-example-workflow';

@StudioApp({
  title: 'MCP Linear Example',
  workflows: [McpLinearExampleWorkflow],
})
@Module({
  imports: [McpLinearExampleModule],
})
export class MyAppModule {}

Environment

Set the Linear OAuth token (the header value is sent raw, so include the Bearer prefix):

LINEAR_MCP_TOKEN="Bearer lin_oauth_..."

Linear's MCP endpoint requires an OAuth access token. Personal API keys (lin_api_*) will not authenticate.

How It Works

  1. Import McpModule and register McpListToolsTool / McpCallTool on your workspace with mcp.linear.app in allowedHosts (copy the config from mcp-linear-example.workflow.ts).
  2. hostHeaderEnv maps AuthorizationLINEAR_MCP_TOKEN for the Linear host. The value is read at call time, never logged.
  3. McpLinearExampleWorkflow starts ChatAgentWorkflow with tools: ['mcp_list_tools', 'mcp_call'].
  4. The chat agent calls Linear's MCP at https://mcp.linear.app/mcp over Streamable HTTP.

Public API

  • McpLinearExampleModule
  • McpLinearExampleWorkflow

Dependencies

  • @loopstack/common
  • @loopstack/agent
  • @loopstack/mcp-module