TypeScript / Node.js
SDK & Client Library
Typsichere TypeScript-Library für alle 8 MCP-Tools. Kein Raw-HTTP, keine manuelle Serialisierung.
Installation
npm install @linkyourskill/mcp-client
Quick Start
TypeScript
import { createClient } from '@linkyourskill/mcp-client';
const lys = createClient({
token: process.env.LYS_TOKEN!,
// url: 'http://localhost/mcp' // optional, defaults to production
});
// Search for providers
const providers = await lys.searchSkillanbieter({
query: 'Klempner',
service_area: 'Berlin',
});
// Create an order
const order = await lys.prepareOrder({
title: 'Wasserhahn reparieren',
description: 'Tropfender Wasserhahn in der Küche',
location: 'Berlin Mitte',
timeframe: 'Nächste Woche',
price_range_min: 50,
price_range_max: 120,
});
// Track status
const status = await lys.getOrderStatus({ order_id: order.id });
console.log(status);API-Referenz
| Method | Beschreibung | Parameters |
|---|---|---|
| searchSkillanbieter() | Search providers by query, category, area, rating | query?, category?, service_area?, min_rating?, day?, time? |
| getSkillanbieterRatings() | Get ratings for a specific provider | skillanbieter_id |
| prepareOrder() | Create order for agentowner approval | title, description, location, timeframe, price_range_min, price_range_max |
| listOrders() | List all orders with optional filters | status?, page?, limit? |
| listActiveOrders() | List orders in active states | — |
| getOrder() | Get full order details | order_id |
| getOrderStatus() | Get order status and timeline | order_id |
| getOrderEvents() | Get order event history | order_id |