open-index/open-npm huggingface dataset:
npm package: @swimmingkiim/api-sdk
Description: A2A API SDK for building Model Context Protocol (MCP) servers and handling agent-to-agent communication.
Latest version: 0.1.41

# @swimmingkiim/api-sdk

A2A API SDK for building Model Context Protocol (MCP) servers and handling agent-to-agent communication.

## Features

- **MCP Server Implementation**: Easily creating and managing MCP servers.
- **Service Discovery**: Discover other agents and services in the A2A ecosystem.
- **Agent Server**: Core class for defining agent capabilities and tools.

## Installation

```bash
npm install @swimmingkiim/api-sdk @modelcontextprotocol/sdk zod
```

## Usage

### Creating an Agent Server

```typescript
import { AgentServer } from '@swimmingkiim/api-sdk';
import { z } from 'zod';

const server = new AgentServer('my-agent', '1.0.0');

server.registerTool(
  'hello_world',
  'A simple greeting tool',
  { name: z.string() },
  async ({ name }) => {
    return {
      content: [{ type: 'text', text: `Hello, ${name}!` }]
    };
  }
);

// Connect to transport (e.g., SSE)
// ... see root README or examples
```
npm package: @swimmingkiim/pay-sdk
Description: A2A Payment SDK for managing ERC-4337 Smart Accounts, Session Keys, and Gas Sponsorship.
Latest version: 0.1.41

# @swimmingkiim/pay-sdk

A2A Payment SDK for managing ERC-4337 Smart Accounts, Session Keys, and Gas Sponsorship.

## Features

- **Smart Account Management**: Create and manage ERC-4337 Smart Accounts (Kernel, SimpleAccount, etc.).
- **Session Keys**: Create limited-scope session keys for autonomous agents.
- **Paymaster Integration**: Seamlessly integrate with Paymaster services for gas sponsorship.
- **Batch Transactions**: Execute multiple transactions (e.g., service call + fee payment) in a single atomic operation.

## Installation

```bash
npm install @swimmingkiim/pay-sdk viem@2.7.1 permissionless@^0.2.14
```

## Usage

### Smart Account with Paymaster

```typescript
import { createWalletClient, http, createPublicClient } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { sepolia } from 'viem/chains';
import { SmartAccountManager, PaymasterManager } from '@swimmingkiim/pay-sdk';

// 1. Setup Clients
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const client = createWalletClient({
    account,
    chain: sepolia,
    transport: http(process.env.RPC_URL)
});
const publicClient = createPublicClient({
    chain: sepolia,
    transport: http(process.env.RPC_URL)
});

// 2. Initialize Paymaster (Optional)
let paymasterManager;
if (process.env.PAYMASTER_URL) {
    // Pass API Key if required by the service
    paymasterManager = new PaymasterManager(
        process.env.PAYMASTER_URL, 
        process.env.A2A_PAYMASTER_API_KEY
    );
}

// 3. Initialize Smart Account
const smartAccount = new SmartAccountManager(
    client, 
    publicClient, 
    process.env.RPC_URL, 
    paymasterManager
);

await smartAccount.createSafeAccount();
console.log("Smart Account Address:", smartAccount.getAddress());

// 4. Send Batched Transaction (e.g., Task + Fee)
const txHash = await smartAccount.executeBatch([
    {
        to: "0x...", // Service Contract
        value: 0n,
        data: "0x..." // Encoded call
    },
    {
        to: "0x...", // USDC Contract
        value: 0n,
        data: "0x..." // Encoded Transfer (Fee)
    }
]);
```

## Session Keys


(See `SessionKeyManager` for creating and using session keys - *Documentation in progress*)

## Paymaster Usage

For detailed instructions on how to use the Paymaster for gas sponsorship, see the [Paymaster Usage Guide](./PAYMASTER_USAGE.md).
npm package: @swimmingkiim/trust-sdk
Description: A2A Trust SDK for Identity (DID), Verifiable Credentials (VC), and Reputation Management.
Latest version: 0.2.11

# @swimmingkiim/trust-sdk

A2A Trust SDK for Identity (DID), Verifiable Credentials (VC), and Reputation Management.

## Features

- **Identity Management**: Create and manage DIDs (did:key, did:ethr).
- **Verifiable Credentials**: Issue and verify W3C-compliant VCs.
- **Reputation**: Interact with the A2A reputation system.

## Installation

```bash
npm install @swimmingkiim/trust-sdk @veramo/core
```

## Usage

### Identity Management

```typescript
import { IdentityManager } from '@swimmingkiim/trust-sdk';

const idManager = new IdentityManager();
const did = await idManager.createEphemeralDID();
console.log('Created DID:', did);
```

### Verifiable Credentials

```typescript
// Assuming an initialized agent context
const credential = await agent.createVerifiableCredential({
  credential: {
    issuer: { id: myDID },
    credentialSubject: {
      id: targetDID,
      trustScore: 42
    }
  },
  proofFormat: 'jwt'
});
```