File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -123,22 +123,14 @@ MCP has these main types of messages:
123
123
}
124
124
```
125
125
126
- 2 . ** Notifications** are one-way messages that don't expect a response:
127
- ``` typescript
128
- interface Notification {
129
- method: string ;
130
- params? : { ... };
131
- }
132
- ```
133
-
134
- 3 . ** Results** are successful responses to requests:
126
+ 2 . ** Results** are successful responses to requests:
135
127
``` typescript
136
128
interface Result {
137
129
[key : string ]: unknown ;
138
130
}
139
131
```
140
132
141
- 4 . ** Errors** indicate that a request failed:
133
+ 3 . ** Errors** indicate that a request failed:
142
134
``` typescript
143
135
interface Error {
144
136
code: number ;
@@ -147,6 +139,14 @@ MCP has these main types of messages:
147
139
}
148
140
```
149
141
142
+ 4 . ** Notifications** are one-way messages that don't expect a response:
143
+ ``` typescript
144
+ interface Notification {
145
+ method: string ;
146
+ params? : { ... };
147
+ }
148
+ ```
149
+
150
150
## Connection lifecycle
151
151
152
152
### 1. Initialization
You can’t perform that action at this time.
0 commit comments