@swimmingkiim/api-sdk 0.1.2 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +40 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # @swimmingkiim/api-sdk
2
+
3
+ A2A API SDK for building Model Context Protocol (MCP) servers and handling agent-to-agent communication.
4
+
5
+ ## Features
6
+
7
+ - **MCP Server Implementation**: Easily creating and managing MCP servers.
8
+ - **Service Discovery**: Discover other agents and services in the A2A ecosystem.
9
+ - **Agent Server**: Core class for defining agent capabilities and tools.
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ npm install @swimmingkiim/api-sdk @modelcontextprotocol/sdk zod
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ### Creating an Agent Server
20
+
21
+ ```typescript
22
+ import { AgentServer } from '@swimmingkiim/api-sdk';
23
+ import { z } from 'zod';
24
+
25
+ const server = new AgentServer('my-agent', '1.0.0');
26
+
27
+ server.registerTool(
28
+ 'hello_world',
29
+ 'A simple greeting tool',
30
+ { name: z.string() },
31
+ async ({ name }) => {
32
+ return {
33
+ content: [{ type: 'text', text: `Hello, ${name}!` }]
34
+ };
35
+ }
36
+ );
37
+
38
+ // Connect to transport (e.g., SSE)
39
+ // ... see root README or examples
40
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swimmingkiim/api-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/swimmingkiim/a2a-project.git"