Skip to content

Failed to validate tool 9f1_read_neo4j_cypher: TypeError: Cannot use 'in' operator to search for 'type' in true #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kunalgokheTSPL opened this issue Apr 22, 2025 · 7 comments
Assignees

Comments

@kunalgokheTSPL
Copy link

kunalgokheTSPL commented Apr 22, 2025

Expected Behavior (Mandatory)

Failed to validate tool read_neo4j_cypher: TypeError: Cannot use 'in' operator to search for 'type' in true

Actual Behavior (Mandatory)

Failed to validate tool 9f1_read_neo4j_cypher: TypeError: Cannot use 'in' operator to search for 'type' in true

I've used MCP with vscode copilot, It does works with get_schema_cypher functionality, but when i tried by calling read_neo4j_cypher it gives the error "Failed to validate tool 9f1_read_neo4j_cypher"

@a-s-g93
Copy link
Collaborator

a-s-g93 commented Apr 23, 2025

please provide more information according to the issue template

@kunalgokheTSPL
Copy link
Author

please provide more information according to the issue template

Actual Behavior (Mandatory)

Failed to validate tool 9f1_read_neo4j_cypher: TypeError: Cannot use 'in' operator to search for 'type' in true

I've used MCP with vscode copilot, It does works with get_schema_cypher functionality, but when i tried by calling read_neo4j_cypher it gives the error "Failed to validate tool 9f1_read_neo4j_cypher"

@miguelfg
Copy link

Very similar to this, I get GitHub Copilot Failed to validate tool 590_read_neo4j_cypher: TypeError: Cannot use 'in' operator to search for 'type' in true . But I wasn't able to return the schema, nor executing any read cypher. I've tried Claude 3.7 Sonnet and GPT 4o

Examples of my prompts:

  • use neo4j mcp get_schema_cypher and return the schema of the db
  • use neo4j mcp and return the schema of the db
  • use neo4j mcp to count the number of Entity nodes
  • ...

MCP config as:

            "neo4J": {
                "command": "uvx",
                "args": ["mcp-neo4j-cypher", 
                         "--db-url", "bolt://localhost:7687", 
                         "--password","XXXX"]
            },

It fails so quickly that I doubt the llm is even requested.

@a-s-g93 a-s-g93 self-assigned this Apr 28, 2025
@jalakoo
Copy link

jalakoo commented Apr 28, 2025

I ran into the same issue with VS Code. But everything worked fine with VS Code Insiders.

@kaidatar
Copy link

kaidatar commented May 2, 2025

Can confirm, this happens to me too.

@jexp
Copy link
Member

jexp commented May 3, 2025

It would be good if you could also share the generated cypher queries, as in read_cypher it's the cypher query that the LLM generates, so not much we can do from an MCP perspective.

the get_schema tool uses a pre-canned query to determine the schema, which works

@logless
Copy link

logless commented May 6, 2025

I have exactly the same issue. Will try VS Code Insiders.

EDIT: confirmed - error disappears when using VSCode Insiders and the MCP server is working properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants