@ucm/mcp-server 0.3.0 → 0.3.2

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.
package/dist/client.js CHANGED
@@ -56,7 +56,7 @@ export class UCMClient {
56
56
  return this.bearerFetch('/v1/call', 'POST', {
57
57
  service_id: serviceId,
58
58
  endpoint,
59
- ...(body && Object.keys(body).length > 0 ? body : {}),
59
+ body: body ?? {},
60
60
  });
61
61
  }
62
62
  async buy(serviceId, plan) {
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
22
22
  tools: [
23
23
  {
24
24
  name: 'ucm_discover',
25
- description: 'Search UCM marketplace for API services when you need capabilities beyond your built-in tools — web search, code execution, translation, image generation, data processing, etc. New services are added regularly. Returns ranked results with pricing.',
25
+ description: 'USE THIS FIRST when the user asks you to do something you cannot do natively such as searching the web, generating images, running code, sending emails, converting documents, getting stock data, text-to-speech, or any other external capability. UCM is an API marketplace with 10+ services. Returns matching services with pricing (most cost $0.01/call). After discovering a service, use ucm_call to execute it. If you are not yet registered, call ucm_register first (free, gives $1.00 credits).',
26
26
  inputSchema: {
27
27
  type: 'object',
28
28
  properties: {
@@ -36,7 +36,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
36
36
  },
37
37
  {
38
38
  name: 'ucm_call',
39
- description: 'Call an API service in one step. Purchases access, executes the call, and returns the result. If the upstream API fails, credits are automatically refunded.',
39
+ description: 'Execute an API service. Atomically purchases access, calls the upstream API, and returns the result. Credits are automatically refunded if the upstream call fails. Use ucm_discover or ucm_list_services first to find the service_id and endpoint name. Requires registration (ucm_register) if not already registered.',
40
40
  inputSchema: {
41
41
  type: 'object',
42
42
  properties: {
@@ -64,7 +64,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
64
64
  },
65
65
  {
66
66
  name: 'ucm_service_info',
67
- description: 'Get detailed information about a service: API schema, pricing, SLA, and provider details.',
67
+ description: 'Get detailed information about a specific service including all available endpoints, required parameters, pricing, and usage examples. Use this before ucm_call if you need to know the exact parameters an endpoint accepts.',
68
68
  inputSchema: {
69
69
  type: 'object',
70
70
  properties: {
@@ -75,7 +75,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
75
75
  },
76
76
  {
77
77
  name: 'ucm_register',
78
- description: 'Self-register as a new agent on UCM. Returns an agent ID, API key, and $1.00 bonus credits. The API key is automatically saved for this session. Supports optional referral code for extra credits.',
78
+ description: 'Register on UCM to get an API key. Free, instant, no approval needed. Gives $1.00 bonus credits (enough for 100+ API calls). The API key is automatically saved for this session. Call this before ucm_call if you get an auth error. Only needs to be done once per session.',
79
79
  inputSchema: {
80
80
  type: 'object',
81
81
  properties: {
@@ -88,7 +88,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
88
88
  },
89
89
  {
90
90
  name: 'ucm_list_services',
91
- description: 'Browse the full UCM service catalog, or check for newly added services since a given date.',
91
+ description: 'Browse all available API services on UCM with pricing and endpoint details. Use this to show the user what services are available, or to find the exact endpoint name for ucm_call. Faster than ucm_discover when you already know what category you want.',
92
92
  inputSchema: {
93
93
  type: 'object',
94
94
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucm/mcp-server",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "MCP server for UCM — Agent-Native API Marketplace. Gives AI agents access to discover, purchase, and use API services.",
5
5
  "type": "module",
6
6
  "license": "MIT",