@imazhar101/mcp-bigquery-server 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,7 +54,7 @@ class BigQueryServer {
54
54
  isError: true,
55
55
  };
56
56
  }
57
- const { rows, rowCount, schema, bytesProcessed, cacheHit, strippedFields } = result.data;
57
+ const { rows, rowCount, schema, bytesProcessed, cacheHit, strippedFields, } = result.data;
58
58
  const headers = schema?.map((f) => f.name) ?? Object.keys(rows[0] ?? {});
59
59
  const body = args.format === 'json'
60
60
  ? formatAsJson(rows)
@@ -26,7 +26,6 @@ export class BigQueryService {
26
26
  query: sql,
27
27
  dryRun: true,
28
28
  location: this.config.location,
29
- defaultDataset: { projectId: billingProject },
30
29
  });
31
30
  const statementType = dryRunJob.metadata?.statistics?.query?.statementType ?? '';
32
31
  if (statementType !== 'SELECT') {
@@ -41,7 +40,6 @@ export class BigQueryService {
41
40
  const [job] = await this.client.createQueryJob({
42
41
  query: sql,
43
42
  location: this.config.location,
44
- defaultDataset: { projectId: billingProject },
45
43
  maximumBytesBilled: String(10 * 1024 * 1024 * 1024), // 10 GB safety cap
46
44
  });
47
45
  const [rows] = await job.getQueryResults({ maxResults: clampedRows });
@@ -98,7 +96,9 @@ export class BigQueryService {
98
96
  const isBlocked = (name) => prevented.some((p) => name.toLowerCase() === p.toLowerCase());
99
97
  const allFieldNames = schema.length > 0
100
98
  ? schema.map((f) => f.name)
101
- : rows.length > 0 ? Object.keys(rows[0]) : [];
99
+ : rows.length > 0
100
+ ? Object.keys(rows[0])
101
+ : [];
102
102
  const strippedFields = allFieldNames.filter(isBlocked);
103
103
  if (strippedFields.length === 0) {
104
104
  return { filteredRows: rows, filteredSchema: schema, strippedFields: [] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imazhar101/mcp-bigquery-server",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "BigQuery MCP server — read-only query execution, schema exploration, dataset discovery",
5
5
  "type": "module",
6
6
  "main": "dist/servers/bigquery/src/index.js",