jongalloway / jongalloway/dotnet-mcp
Review error codes (-32002 deprecation, renumbered protocol codes)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 36
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Review custom error codes (-32002 deprecation, renumbered protocol codes)
Part of #481.
DotNetMcp/Errors/McpErrorCodes.cs defines custom codes, including ResourceNotFound = -32002 and CapabilityNotAvailable = -32001.
SDK 2.0 / spec changes:
- SEP-2164:
-32002resource-not-found is deprecated in favor of-32602 InvalidParamsunder2026-07-28(SDK auto-selects by negotiated version). - Protocol error codes renumbered:
HeaderMismatch -32001 → -32020,MissingRequiredClientCapability -32003 → -32021,UnsupportedProtocolVersion -32004 → -32022. This frees-32001, but the customCapabilityNotAvailable = -32001should be re-confirmed for collisions.
Tasks
- Decide how to map
ResourceNotFound: keep-32002for legacy, prefer-32602for2026-07-28, or defer to the SDK's automatic selection. - Confirm
-32001/-32002no longer collide with renumbered protocol codes. - Update
ErrorCodeDictionary/ErrorResultFactoryand related docs as needed.
Acceptance
- Error-code mapping reviewed and aligned with the negotiated protocol version; no collisions.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading DotNetMcp/Errors/McpErrorCodes.cs, then trace ErrorCodeDictionary and ErrorResultFactory to understand how negotiated protocol versions select error codes. Compare the existing mappings with the cited SEP-2164 and SDK 2.0 changes; done means the version-aware mapping is reviewed, documented as needed, and has no code collisions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100