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

@ha-bits/bit-agent

v0.1.2

Published

AI Agent bit with LangChain and MCP (Model Context Protocol) integration for multi-tool AI workflows

Downloads

175

Readme

@ha-bits/bit-agent

AI Agent bit with LangChain and MCP (Model Context Protocol) integration for multi-tool AI workflows.

Features

  • Multi-provider LLM support: OpenAI, Anthropic (Claude), Google (Gemini)
  • MCP Integration: Connect to any MCP server for tool access
  • Built-in MCP presets: Google Drive, Slack, GitHub, Notion, Figma, Everything
  • Custom MCP servers: Define your own MCP server connections
  • Dual transport: Support for both stdio and SSE (Server-Sent Events) transports
  • Dynamic configuration: Configure MCPs dynamically in your habit YAML

Installation

npm install @ha-bits/bit-agent

Usage

Basic Example

nodes:
  - id: agent-search
    type: bit
    data:
      framework: bits
      module: '@ha-bits/bit-agent'
      operation: run_agent
      source: npm
      credentials:
        agentAuth:
          llmProvider: openai
          apiKey: '{{habits.env.OPENAI_API_KEY}}'
          mcpSecrets:
            SLACK_BOT_TOKEN: '{{habits.env.SLACK_BOT_TOKEN}}'
            GDRIVE_CREDENTIALS: '{{habits.env.GDRIVE_CREDENTIALS}}'
      params:
        prompt: 'Search for documents about Q4 planning'
        mcpServers:
          - type: google-drive
          - type: slack

With Custom MCP Server

params:
  prompt: 'Analyze the local codebase'
  mcpServers:
    - type: custom
      command: npx
      args: ['@anthropic/mcp-server-filesystem', '/path/to/project']
      transport: stdio

With SSE Transport

params:
  prompt: 'Query the remote database'
  mcpServers:
    - type: custom
      transport: sse
      url: 'http://localhost:8080/mcp'

Built-in MCP Presets

| Preset | Description | Required Secrets | |--------|-------------|------------------| | google-drive | Google Drive file access | GOOGLE_DRIVE_CREDENTIALS | | slack | Slack workspace access | SLACK_BOT_TOKEN | | github | GitHub repository access | GITHUB_TOKEN | | notion | Notion workspace access | NOTION_API_KEY | | figma | Figma design access | FIGMA_ACCESS_TOKEN | | everything | Local filesystem & testing | None |

Authentication

The credentials object must be nested under agentAuth key:

credentials:
  agentAuth:
    llmProvider: openai  # or 'anthropic', 'google'
    apiKey: '{{habits.env.OPENAI_API_KEY}}'
    mcpSecrets:
      SLACK_BOT_TOKEN: '{{habits.env.SLACK_BOT_TOKEN}}'

Action Parameters

run_agent

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | prompt | string | Yes | - | The task or question for the agent | | systemPrompt | string | No | - | System instructions for the agent | | mcpServers | array | Yes | - | List of MCP servers to connect | | model | string | No | Provider default | Model to use | | maxIterations | number | No | 10 | Maximum agent iterations | | temperature | number | No | 0.7 | LLM temperature |

License

MIT