Commit ca4689d
Use JSON-RPC ping for OAuth auth-discovery probe
The probe POST previously sent a JSON-RPC `initialize`, which a strict
MCP mock (and potentially some real servers) counted as a real handshake
alongside the actual ECA initialize. The integration test
`mcp-remote-server-connects` asserts `(= 1 (count init-reqs))` and broke
with `(not (= 1 2))`.
Switch the probe to a JSON-RPC `ping`:
- Still a valid JSON-RPC envelope, so OAuth-protected servers (Figma,
Glean, etc.) still hit their auth middleware and emit the expected
401 + www-authenticate.
- Never confused with the real MCP handshake by servers that maintain
per-connection state or by test mocks that bucket requests by method.
🤖 Generated with [eca](https://eca.dev)
Co-Authored-By: eca-agent <git@eca.dev>1 parent a768784 commit ca4689d
2 files changed
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
0 commit comments