@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.js CHANGED
@@ -686,8 +686,9 @@ var DatabaseClient = class {
686
686
  * @throws {MimDBApiError} On non-OK response or network failure.
687
687
  */
688
688
  async getTableSchema(table) {
689
+ const tableName = table.includes(".") ? table.split(".").pop() : table;
689
690
  return this.base.get(
690
- `/v1/introspect/${this.ref}/tables/${encodeURIComponent(table)}`
691
+ `/v1/introspect/${this.ref}/tables/${encodeURIComponent(tableName)}`
691
692
  );
692
693
  }
693
694
  /**