Skip to main content
Glama
Aquariosan

veyra-bookmarks

by Aquariosan
README.md
# veyra-bookmarks

A bookmark and link manager MCP tool for AI agents, with tag filtering, categories, and full-text search. Reads are always free. Write operations require [Veyra](https://veyra.to) commit mode authorization.

## Overview

`veyra-bookmarks` gives AI agents a persistent link library backed by SQLite. Agents can freely browse and search bookmarks. Saving, updating, and deleting requires Veyra commit mode.

## Installation

```bash
npm install
npm run build
```

Data is stored at `~/.veyra-bookmarks/data.db`, created automatically on first run.

## MCP Configuration (Claude Desktop)

```json
{
  "mcpServers": {
    "veyra-bookmarks": {
      "command": "node",
      "args": ["/absolute/path/to/veyra-bookmarks/dist/index.js"]
    }
  }
}
```

## Tools

| Tool | Input | Class | Price |
|------|-------|-------|-------|
| `list_bookmarks` | `{ tag?, category? }` | — | FREE |
| `get_bookmark` | `{ id }` | — | FREE |
| `search_bookmarks` | `{ query }` | — | FREE |
| `save_bookmark` | `{ url, title?, tags?, category?, veyra_token? }` | A | €0.005 |
| `update_bookmark` | `{ id, tags?, category?, veyra_token? }` | A | €0.005 |
| `delete_bookmark` | `{ id, veyra_token? }` | B | €0.02 |

## Examples

### Read (no token needed)

```json
// List all bookmarks
{ "tool": "list_bookmarks", "arguments": {} }

// Filter by category
{ "tool": "list_bookmarks", "arguments": { "category": "research" } }

// Search by keyword
{ "tool": "search_bookmarks", "arguments": { "query": "typescript" } }
```

### Write (Veyra token required)

```json
// Save a bookmark
{
  "tool": "save_bookmark",
  "arguments": {
    "url": "https://www.typescriptlang.org/docs/",
    "title": "TypeScript Docs",
    "tags": "typescript,docs,reference",
    "category": "development",
    "veyra_token": "vt_..."
  }
}

// Update tags/category
{
  "tool": "update_bookmark",
  "arguments": {
    "id": "1712345678-abc1234",
    "tags": "typescript,docs,pinned",
    "veyra_token": "vt_..."
  }
}

// Delete
{
  "tool": "delete_bookmark",
  "arguments": { "id": "1712345678-abc1234", "veyra_token": "vt_..." }
}
```

### Error response when token is missing

```json
{
  "error": "VeyraCommitRequired",
  "message": "Write operations require Veyra commit mode.",
  "currentMode": "open",
  "requiredMode": "commit",
  "authorize_endpoint": "https://api.veyra.to/v1/authorize-action",
  "docs_url": "https://veyra.to"
}
```

## How Veyra Works

Veyra is a commit-mode authorization layer for AI agents. When an agent attempts a write:

1. The agent calls the tool without `veyra_token` → receives `VeyraCommitRequired` with `authorize_endpoint`.
2. The agent/user calls the authorize endpoint to obtain a token.
3. The agent retries with `veyra_token` set.
4. `veyra-bookmarks` verifies the token via `@veyrahq/sdk-node` before executing the action.

See [veyra.to](https://veyra.to) for full documentation.

## License

MIT

## Hosted Pack (recommended)

Prefer the hosted pack for one-URL integration:

```json
{
  "mcpServers": {
    "veyra": {
      "url": "https://mcp.veyra.to/sse"
    }
  }
}
```

One URL. 48 tools. 24 free reads. 24 protected writes.

Hosted pack:
https://mcp.veyra.to/sse

Pack manifest:
https://mcp.veyra.to/.well-known/veyra-pack.json

Use the hosted pack when you want the fastest MCP integration path across all Veyra tool families.
Use this standalone package when you specifically want this tool on its own.

## Part of the Veyra Ecosystem

Veyra is commit mode for production AI agent actions.
All tools: reads free, writes require Veyra commit mode.

| Tool | Description | Install |
|------|-------------|---------|
| [veyra-memory](https://github.com/Aquariosan/veyra-memory) | Key-value memory store | `npm i -g veyra-memory` |
| [veyra-notes](https://github.com/Aquariosan/veyra-notes) | Note-taking with tags | `npm i -g veyra-notes` |
| [veyra-tasks](https://github.com/Aquariosan/veyra-tasks) | Task management | `npm i -g veyra-tasks` |
| [veyra-snippets](https://github.com/Aquariosan/veyra-snippets) | Code snippet storage | `npm i -g veyra-snippets` |
| [veyra-contacts](https://github.com/Aquariosan/veyra-contacts) | Contact management | `npm i -g veyra-contacts` |
| [veyra-forms](https://github.com/Aquariosan/veyra-forms) | Form builder | `npm i -g veyra-forms` |
| [veyra-webhooks](https://github.com/Aquariosan/veyra-webhooks) | Webhook sender | `npm i -g veyra-webhooks` |

**SDK:** [npm install @veyrahq/sdk-node](https://www.npmjs.com/package/@veyrahq/sdk-node)
**Website:** [veyra.to](https://veyra.to)

Maintenance

ActivityInactive
ResponsivenessNo issues