@mimdb/mcp 0.1.3 → 0.1.4

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.
package/dist/index.cjs CHANGED
@@ -707,8 +707,9 @@ var DatabaseClient = class {
707
707
  * @throws {MimDBApiError} On non-OK response or network failure.
708
708
  */
709
709
  async getTableSchema(table) {
710
+ const tableName = table.includes(".") ? table.split(".").pop() : table;
710
711
  return this.base.get(
711
- `/v1/introspect/${this.ref}/tables/${encodeURIComponent(table)}`
712
+ `/v1/introspect/${this.ref}/tables/${encodeURIComponent(tableName)}`
712
713
  );
713
714
  }
714
715
  /**