🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vox-ai-app/mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vox-ai-app/mcp

MCP (Model Context Protocol) client for Vox — connect to stdio, SSE, and HTTP servers

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@vox-ai-app/mcp

MCP (Model Context Protocol) client for Vox. Connects to stdio, SSE, and HTTP MCP servers with session persistence and automatic reconnection.

Install

npm install @vox-ai-app/mcp

Usage

import { connectMcpServer, setLogger } from '@vox-ai-app/mcp'

setLogger(logger)

const { client, tools } = await connectMcpServer({
  id: 'my-server',
  command: 'npx',
  args: ['-y', '@modelcontextprotocol/server-filesystem', '/home']
})

// tools is an array of { name, description, inputSchema }
console.log(tools.map((t) => t.name))

// call a tool directly
const result = await client.callTool({ name: 'read_file', arguments: { path: '/home/notes.md' } })

Transport types

TypeConfig
stdio{ command, args, env }
SSE{ url } where url ends with /sse
HTTP{ url } (streamable HTTP)

Session management

Sessions for HTTP/SSE transports are persisted to {VOX_USER_DATA_PATH}/mcp-sessions.json to allow reconnection across restarts.

import {
  getStoredSessionId,
  persistSessionId,
  clearSessionId,
  terminateStaleSession
} from '@vox-ai-app/mcp'

API

connectMcpServer(server) // Connect and list tools
makeTransport(server) // Create transport only
parseCommand(str) // Parse "cmd arg1 arg2" into { command, args }
getStoredSessionId(serverId) // Read persisted session
persistSessionId(serverId, id) // Save session
clearSessionId(serverId) // Delete session
terminateStaleSession(server, id) // HTTP DELETE to terminate
setLogger(logger) // Inject logger

Requirements

  • VOX_USER_DATA_PATH env var set to a writable directory (for session persistence)

License

MIT

FAQs

Package last updated on 01 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts