open-index/open-npm huggingface dataset:
npm package: @ha-bits/bit-agent
Description: AI Agent bit with LangChain and MCP (Model Context Protocol) integration for multi-tool AI workflows
Author: Habits Team
Latest version: 0.1.2

# @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

```bash
npm install @ha-bits/bit-agent
```

## Usage

### Basic Example

```yaml
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

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

### With SSE Transport

```yaml
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:

```yaml
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
npm package: @ha-bits/bit-database-sql
Description: SQL database storage bit using Drizzle ORM with SQLite support - replaces @ha-bits/bit-database with SQL persistence
Latest version: 1.0.1

# @ha-bits/bit-database-sql

SQL database storage bit using **Drizzle ORM** with **SQLite** support.

This bit replaces `@ha-bits/bit-database` with SQL persistence, providing a type-safe and efficient way to store data using SQLite.

## Features

- **SQLite storage** - Persistent local database using better-sqlite3
- **Drizzle ORM** - Type-safe SQL operations
- **Key-Value store** - Simple store/get/delete operations
- **Document store** - Insert/update/query documents with auto-generated IDs
- **TTL support** - Automatic expiration of stored values
- **Raw SQL** - Execute custom SQL queries when needed
- **Browser/Tauri ready** - Stubs for `window.__TAURI__.sql`

## Environment Support

| Environment | Backend |
|------------|---------|
| Node.js | better-sqlite3 |
| Browser/Tauri | window.__TAURI__.sql (via stubs) |

## Actions

### Key-Value Operations

| Action | Description |
|--------|-------------|
| `store` | Store a value with a key |
| `get` | Retrieve a value by key |
| `delete` | Delete a value by key |
| `list` | List all keys in a collection |
| `increment` | Atomically increment a numeric value |

### Document Operations

| Action | Description |
|--------|-------------|
| `insert` | Insert a document with auto-generated ID |
| `update` | Update a document matching a filter |
| `query` | Query documents with simple filters |

### Raw SQL Operations

| Action | Description |
|--------|-------------|
| `rawQuery` | Execute a SELECT query |
| `rawExecute` | Execute INSERT/UPDATE/DELETE statements |

## Usage Example

```yaml
# Insert a user document
- id: insert-user
  type: bits
  data:
    module: "@ha-bits/bit-database-sql"
    operation: insert
    params:
      collection: "users"
      document:
        name: "John Doe"
        email: "john@example.com"
        status: "pending"

# Update the user
- id: update-user
  type: bits
  data:
    module: "@ha-bits/bit-database-sql"
    operation: update
    params:
      collection: "users"
      filter:
        _id: "{{insert-user.id}}"
      update:
        status: "active"

# Query users
- id: find-users
  type: bits
  data:
    module: "@ha-bits/bit-database-sql"
    operation: query
    params:
      collection: "users"
      filter:
        status: "active"
      limit: 10
```

## Database Location

- **Node.js**: `/tmp/habits-sql/{database}.db`
- **Browser**: In-memory (or Tauri SQL plugin)

## Related Bits

- `@ha-bits/bit-database` - In-memory storage (parent bit)
- `@ha-bits/bit-pouch` - PouchDB/IndexedDB storage
npm package: @ha-bits/bit-intersect
Description: Intersect AI integration bit module for the Habits workflow system
Author: Habits Team
Latest version: 0.1.14

# @ha-bits/bit-intersect

Intersect AI integration bit module for the Habits workflow system.

This module provides AI actions (chat, image generation, transcription, etc.) that connect to Intersect AI services.

## Key Difference from @ha-bits/piece-intersect

This module imports from `@ha-bits/cortex` packages.

## Features

- Send prompts to AI models
- Generate images
- Text-to-speech conversion
- Audio transcription and translation
- Vision prompts (analyze images)
- Structured data extraction
- Create videos
- Ask AI assistant

## Installation

```bash
npm install @ha-bits/bit-intersect
```

## Usage

This module is designed to be used with the Habits workflow executor:

```typescript
import { intersect } from '@ha-bits/bit-intersect';

// Use in workflow configuration
const action = intersect.actions.send_prompt;
```

## License

MIT
npm package: @ha-bits/piece-intersect
Description: Intersect AI tools piece for Activepieces - includes ChatGPT, image generation, and canvas features
Author: ha-bits
Latest version: 0.1.4

# pieces-intersect

This library was generated with [Nx](https://nx.dev).

## Running lint

Run `nx lint pieces-intersect` to execute the lint via [ESLint](https://eslint.org/).