-
Notifications
You must be signed in to change notification settings - Fork 525
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Default JsonSerializerSettings configured in McpJsonUtilities does not serialize enum values using camel case. This causes invalid options in MCP Inspector v0.6.0 when getting a prompt
To Reproduce
Steps to reproduce the behavior:
- install and run MCP Inspector v0.6.0 (npx @modelcontextprotocol/inspector)
- connect to running instance of ASP hosted SSE (with prompts configured)
- List prompts in MCP inspector
- Select a promt and click get prompt button
- Notice response error
Expected behavior
Response should be valid for Role enum in camel case
Logs
If applicable, add logs to help explain your problem.
Additional context
This can be fixed by specifying JSON naming policy in McpJsonUtilites.CreateDefaultOptions() with
Converters = { new JsonStringEnumConverter(JsonNamingPolicy.CamelCase) },
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working