Skip to content

JsonSchema missing items when parsing properties #24

@eiriktsarpalis

Description

@eiriktsarpalis

Originally posted by @Richasy in PederHP/mcpdotnet#104.

I encountered an exception when trying to call the FileSystem MCP Server because the items property was not parsed, which resulted in the failure to pass the OpenAI format check.

This is the definition of a tool returned by the mcp server:

{
	"name": "read_multiple_files",
	"description": "Read the contents of multiple files simultaneously. This is more efficient than reading files one by one when you need to analyze or compare multiple files. Each file\u0027s content is returned with its path as a reference. Failed reads for individual files won\u0027t stop the entire operation. Only works within allowed directories.",
	"inputSchema": {
		"type": "object",
		"properties": {
			"paths": {
				"type": "array",
				"items": {
					"type": "string"
				}
			}
		},
		"required": ["paths"],
		"additionalProperties": false,
		"$schema": "http://json-schema.org/draft-07/schema#"
	}
}

Currently missing parsing for [properties.paths.items]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions