Commit 6ca0670
fix(mcp): stub resources/list + prompts/list so MCP clients stop ERROR-logging (#107)
opencode 1.15.x and other MCP clients probe `resources/list` and
`prompts/list` on connect to discover server capabilities. mempalace's
MCP server only exposes tools; these probes returned `-32601: Unknown
method`, which clients log as ERROR even though the result is benign
(no resources, no prompts). Two log-noise lines per session.
Both methods are optional per the MCP spec. Return empty lists instead
of the error, matching what other MCP servers without resources/prompts
do (e.g. server-everything, filesystem reference server).
Tests: tests/test_mcp_server.py — two new TestProtocol cases assert the
empty-list shape and absence of ERROR.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dfe3cb8 commit 6ca0670
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3029 | 3029 | | |
3030 | 3030 | | |
3031 | 3031 | | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
3032 | 3043 | | |
3033 | 3044 | | |
3034 | 3045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
540 | 561 | | |
541 | 562 | | |
542 | 563 | | |
| |||
0 commit comments