Skip to content
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

Cannot parse as CloudRegion #4

Open
0anton opened this issue Dec 25, 2024 · 6 comments
Open

Cannot parse as CloudRegion #4

0anton opened this issue Dec 25, 2024 · 6 comments

Comments

@0anton
Copy link

0anton commented Dec 25, 2024

For every request, for example this:

{
  `sql`: `
SELECT schema_name
FROM INFORMATION_SCHEMA.SCHEMATA
ORDER BY schema_name;
`
}

I'm getting an error:

Error executing code: MCP error 400: Cannot parse as CloudRegion.

There is a double space after the word "parse". I don't see the word CloudRegion in the source code of this module.

I've tried both project id and project number - same error.

bq cli can list table with out any problems.

@silvanm
Copy link

silvanm commented Jan 18, 2025

In my case, the problem was the multi-region setup of my DB. I modified the code a bit to accommodate for this.

#5

@0anton
Copy link
Author

0anton commented Jan 20, 2025

Thanks für PR, @silvanm! The fixed list of regions is a bit risky (not „timeless“), as Google adds regions from time to time, but it is easy to correct. I like the idea with default region „EU“, too 🙂, but sure our US friends will disagree with its commonality.

I‘ve noticed the BigQuery MCPs all require the region specified. It‘s very annoying if you have tables in mixed regions (e.g. „EU“ and „europe-west1“), as it randomly fails as traffic moves from table to table.

If I run „bq query“ from CLI I never have to bother about region. It just runs, as soon as I have permissions to the object. I wonder if MCP can also be made region agnostic….

I also don‘t remember if BigQuery API requires regions specification.

@ngohuuduc
Copy link

@0anton Do you still face the same issue ? I'm facing this issue and not able to solve.

@0anton
Copy link
Author

0anton commented Mar 14, 2025

@ngohuuduc yes

@ngohuuduc
Copy link

@ngohuuduc yes

seems like the issue is actually coming from API itself ?

@ngohuuduc
Copy link

@0anton : you may try my fork version
https://github.com/ngohuuduc/mcp-bigquery-server

it's just work for me.

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

No branches or pull requests

3 participants