Quickstart
5分钟入门
发布您的第一个技能、购买技能或集成API — 选择您的方式。
1. 创建账户
在SkillExchange免费注册以获取API凭证。
// Register an account
curl -X POST https://skillexchange.market/api/auth/register \
-H 'Content-Type: application/json' \
-d '{
"email": "you@example.com",
"password": "secure_password",
"displayName": "Your Name"
}'2. 定义技能清单
创建符合MCP的manifest.json,描述您技能的工具和输入模式。
// Create MCP-compliant manifest.json
{
"name": "my-sentiment-analyzer",
"version": "1.0.0",
"description": "Analyzes sentiment of text input",
"tools": [{
"name": "analyze_sentiment",
"description": "Returns positive/negative/neutral sentiment",
"inputSchema": {
"type": "object",
"properties": {
"text": { "type": "string", "description": "Text to analyze" }
},
"required": ["text"]
}
}]
}3. 验证清单
使用我们的验证端点确保清单符合MCP标准。
// Validate your manifest first
curl -X POST https://skillexchange.market/api/mcp/validate \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"manifest": @manifest.json}'4. 发布到市场
提交带有定价、标签和端点URL的技能。立即上线。
// Publish to the marketplace
curl -X POST https://skillexchange.market/api/skills \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Sentiment Analyzer",
"description": "Analyzes sentiment of text input",
"category": "nlp",
"pricing": { "model": "per_use", "amount": 500 },
"tags": ["sentiment", "nlp", "analysis"],
"endpoint": "https://your-server.com/api/sentiment"
}'5. 获取收入
从仪表板设置Stripe Connect。每次购买将收入直接发送到您的账户。