You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: `Hello ${name}, welcome to the ${department} team!`
315
+
}
316
+
}]
317
+
})
318
+
);
319
+
```
320
+
321
+
### Completions
322
+
323
+
MCP supports argument completions to help users fill in prompt arguments and resource template parameters. See the examples above for [resource completions](#resources) and [prompt completions](#prompts).
324
+
325
+
#### Client Usage
326
+
327
+
```typescript
328
+
// Request completions for any argument
329
+
const result =awaitclient.complete({
330
+
ref: {
331
+
type: "ref/prompt", // or "ref/resource"
332
+
name: "example"// or uri: "template://..."
333
+
},
334
+
argument: {
335
+
name: "argumentName",
336
+
value: "partial"// What the user has typed so far
337
+
},
338
+
context: { // Optional: Include previously resolved arguments
339
+
arguments: {
340
+
previousArg: "value"
341
+
}
342
+
}
343
+
});
344
+
253
345
```
254
346
255
347
### Display Names and Metadata
@@ -805,6 +897,7 @@ const result = await client.callTool({
0 commit comments