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
The Model Context Protocol (MCP) provides a standardized way for servers to provide argument completion suggestions for prompts and resource URIs. This enables rich, IDE-like experiences where users receive contextual suggestions while entering argument values.
9
+
The Model Context Protocol (MCP) provides a standardized way for servers to offer argument autocompletion suggestions for prompts and resource URIs. This enables rich, IDE-like experiences where users receive contextual suggestions while entering argument values.
10
10
11
11
## User Interaction Model
12
12
13
-
Completion in MCP is designed to support interactive user experiences similar to IDE code completion. A recommended implementation pattern is showing completion suggestions in a dropdown or popup menu as users type, with the ability to filter and select from available options.
13
+
Completion in MCP is designed to support interactive user experiences similar to IDE code completion.
14
14
15
-
However, implementations are free to expose completion through any interface pattern that suits their needs - the protocol itself does not mandate any specific user interaction model.
15
+
For example, applications may show completion suggestions in a dropdown or popup menu as users type, with the ability to filter and select from available options.
16
+
17
+
However, implementations are free to expose completion through any interface pattern that suits their needs—the protocol itself does not mandate any specific user interaction model.
16
18
17
19
## Protocol Messages
18
20
@@ -61,7 +63,7 @@ The protocol supports two types of completion references:
61
63
| Type | Description | Example |
62
64
|------|-------------|---------|
63
65
|`ref/prompt`| References a prompt by name |`{"type": "ref/prompt", "name": "code_review"}`|
64
-
|`ref/resource`| References a resource URI |`{"type": "ref/resource", "uri": "file://{path}"}`|
66
+
|`ref/resource`| References a resource URI |`{"type": "ref/resource", "uri": "file:///{path}"}`|
0 commit comments