New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@vasperacapital/vasperamesh-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vasperacapital/vasperamesh-sdk

VasperaMesh Agent SDK for building MCP-compatible agents with AMP protocol support

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
5
-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

@vasperamesh/sdk

VasperaMesh Agent SDK for building MCP-compatible agents with AMP protocol support.

Installation

npm install @vasperamesh/sdk
# or
pnpm add @vasperamesh/sdk

Quick Start

import { Agent } from '@vasperamesh/sdk'

const agent = new Agent({
  name: 'CodeReviewer',
  version: '1.0.0',
  capabilities: ['code-review', 'suggest-improvements'],
  meshUrl: process.env.MESH_URL,
})

// Add MCP tool
agent.addTool({
  name: 'review_code',
  description: 'Review code for issues',
  inputSchema: {
    type: 'object',
    properties: {
      code: { type: 'string' },
      language: { type: 'string' },
    },
    required: ['code'],
  },
  handler: async (params) => {
    // Your logic here
    return { issues: [], suggestions: [] }
  },
})

// Handle tasks from mesh
agent.onTask('code-review', async (task, context) => {
  const { code, language } = task.payload
  
  // Execute review
  const review = await reviewCode(code, language)
  
  // Optionally delegate to other agents
  if (review.needsRefactoring) {
    const architect = await context.findAgent('architect')
    if (architect) {
      const refactor = await architect.invoke('suggest_refactor', { code })
      review.refactorSuggestions = refactor
    }
  }
  
  return {
    taskId: task.taskId,
    status: 'completed',
    result: review,
  }
})

// Connect to mesh
await agent.connect()

Documentation

See VasperaMesh Documentation for complete API reference.

Keywords

vasperamesh

FAQs

Package last updated on 08 Jan 2026

Related posts