Skip to content

Commit 1ff08be

Browse files
authored
Merge pull request modelcontextprotocol#73 from LaurentAjdnik/message_types_order
Message types order
2 parents 65673e9 + c52f128 commit 1ff08be

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/concepts/architecture.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,14 @@ MCP has these main types of messages:
123123
}
124124
```
125125

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:
135127
```typescript
136128
interface Result {
137129
[key: string]: unknown;
138130
}
139131
```
140132

141-
4. **Errors** indicate that a request failed:
133+
3. **Errors** indicate that a request failed:
142134
```typescript
143135
interface Error {
144136
code: number;
@@ -147,6 +139,14 @@ MCP has these main types of messages:
147139
}
148140
```
149141

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+
150150
## Connection lifecycle
151151

152152
### 1. Initialization

0 commit comments

Comments
 (0)