ruby-sdk/lib/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO 47d29e8014 Fix errors when title is not specified
Since the optional `title` becomes `title: null` when not provided, the following error occurs.
This occurs with Claude Code 1.0.100.

```console
[DEBUG] MCP server "example": Connection failed after 1591ms: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "null",
    "path": [
      "serverInfo",
      "title"
    ],
    "message": "Expected string, received null"
  }
]
```

By adding `compact`, the `title` key will be removed if the optional `title` keyword argument is not specified.
2025-09-03 12:31:33 +09:00
..
prompt stop using shared dir 2025-05-30 14:33:22 -04:00
resource stop using shared dir 2025-05-30 14:33:22 -04:00
server Return HTTP status code 202 for notification initialized method 2025-08-11 10:40:17 -04:00
tool Set default values for ToolAnnotations hints 2025-08-28 01:13:57 +09:00
transports Add a migration path for Server::Transports::StdioTransport 2025-06-10 16:27:22 +09:00
configuration.rb Set default protocol version to the latest specification 2025-07-20 16:36:18 +09:00
content.rb stop using shared dir 2025-05-30 14:33:22 -04:00
instrumentation.rb stop using shared dir 2025-05-30 14:33:22 -04:00
methods.rb Add missing checks 2025-06-15 17:35:18 +09:00
prompt.rb add titles to tools, prompts and resources 2025-08-17 22:58:15 -04:00
resource.rb add titles to tools, prompts and resources 2025-08-17 22:58:15 -04:00
resource_template.rb add titles to tools, prompts and resources 2025-08-17 22:58:15 -04:00
server.rb Fix errors when title is not specified 2025-09-03 12:31:33 +09:00
string_utils.rb stop using shared dir 2025-05-30 14:33:22 -04:00
tool.rb Fix errors when title is not specified 2025-09-03 12:31:33 +09:00
transport.rb Addressing feedback 2025-06-11 13:44:54 -07:00
version.rb Bump version 2025-07-15 15:40:15 -04:00