vertex-cli

vertex-cli

Enables lookup of Nostr profiles and checking of Vertex API credit balance using the Vertex API.

Category
Visit Server

README

Vertex CLI

A command-line tool for looking up Nostr profiles using the Vertex API. This tool allows you to search for Nostr profiles by query and check your credit balance.

Installation

To install dependencies:

bun install

Usage

Interactive Mode

Run without any arguments to enter interactive mode:

bun index.ts

In interactive mode, you can run multiple commands after logging in once. Available commands:

  • lookup <query> - Look up Nostr profiles
  • credits - Check credit balance
  • help - Show available commands
  • exit - Exit interactive mode

Command Line Mode

Run specific commands directly:

# Look up profiles
bun index.ts lookup "alice" --nsec nsec1...

# Check credit balance
bun index.ts credits --nsec nsec1...

# Show help
bun index.ts --help

Options

  • --nsec <key> - Your Nostr private key (nsec format). If not provided, you'll be prompted to enter it.
  • --query <query> - Search query for profile lookup
  • --sort <method> - Sort method (global or local)

Examples

# Enter interactive mode
bun index.ts

# Single command with nsec
bun index.ts lookup "alice" --nsec nsec1...

# Single command, will prompt for nsec
bun index.ts lookup "alice"

# Check credits
bun index.ts credits --nsec nsec1...

Authentication

This tool requires a Nostr private key (nsec format) for authentication with the Vertex API. You can provide it via the --nsec flag or enter it when prompted.

MCP Server

This project includes a Model Context Protocol (MCP) server that allows external clients to interact with the Vertex API through a standardized interface.

Starting the MCP Server

You can start the MCP server in several ways:

# Using CLI argument
bun index.ts mcp --nsec nsec1...

# Using environment variable
VERTEX_KEY=nsec1... bun index.ts mcp

# Direct execution of MCP server
bun common/mcp.ts --nsec nsec1...
VERTEX_KEY=nsec1... bun common/mcp.ts

MCP Server Tools

The MCP server exposes two tools:

1. lookup - Profile Lookup

Search for Nostr profiles by query with various sorting options.

Parameters:

  • query (string, required): Search query to find Nostr profiles
  • sort (string, optional): Sort method - global (default), personalized, or followers
  • limit (number, optional): Maximum number of profiles to return (1-100, default: 10)

Response:

{
  "profiles": [
    {
      "pubkey": "nostr_public_key",
      "relays": ["wss://relay1.example.com", "wss://relay2.example.com"]
    }
  ]
}

2. credits - Credit Balance

Check your current credit balance on the Vertex network.

Parameters: None

Response:

{
  "balance": 1000
}

MCP Client Integration

To use this MCP server with an MCP client, add it to your client configuration:

{
  "mcpServers": {
    "vertex-lookup": {
      "command": "bun",
      "args": ["/path/to/profile-lookup-cvm/common/mcp.ts"],
      "env": {
        "VERTEX_KEY": "nsec1..."
      }
    }
  }
}

MCP Server Features

  • Standardized Interface: Uses the Model Context Protocol for consistent tool access
  • Error Handling: Comprehensive error handling with structured error responses
  • Input Validation: Validates all input parameters with clear error messages
  • Resource Management: Properly manages Vertex API connections and cleanup
  • Flexible Authentication: Supports both CLI arguments and environment variables

Features

  • Profile Lookup: Search for Nostr profiles by query
  • Credit Balance: Check your Vertex API credit balance
  • Interactive Mode: Run multiple commands in a session
  • Command Line Mode: Execute single commands directly
  • MCP Server: Expose functionality via Model Context Protocol for external clients
  • Secure Authentication: Uses Nostr private keys for API authentication

This project was created using bun init in bun v1.2.21. Bun is a fast all-in-one JavaScript runtime.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured