@trylighthouse/mcp-server 0.1.3 → 0.1.7

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/build/api.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Lightweight HTTP client for the Lighthouse API.
3
- * Reads LIGHTHOUSE_API_KEY from environment.
3
+ * Accepts an explicit API key or falls back to LIGHTHOUSE_API_KEY env var.
4
4
  */
5
5
  export declare class LighthouseAPI {
6
6
  private baseUrl;
7
7
  private apiKey;
8
- constructor();
8
+ constructor(apiKey?: string);
9
9
  private request;
10
10
  get(path: string, params?: Record<string, unknown>): Promise<{
11
11
  status: number;
package/build/api.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Lightweight HTTP client for the Lighthouse API.
3
- * Reads LIGHTHOUSE_API_KEY from environment.
3
+ * Accepts an explicit API key or falls back to LIGHTHOUSE_API_KEY env var.
4
4
  */
5
5
  const DEFAULT_BASE_URL = "https://api.trylighthouse.vc";
6
6
  export class LighthouseAPI {
7
7
  baseUrl;
8
8
  apiKey;
9
- constructor() {
10
- const key = process.env.LIGHTHOUSE_API_KEY;
9
+ constructor(apiKey) {
10
+ const key = apiKey || process.env.LIGHTHOUSE_API_KEY;
11
11
  if (!key) {
12
12
  throw new Error("LIGHTHOUSE_API_KEY environment variable is required. " +
13
13
  "Generate one at Settings → API Keys in Lighthouse.");
package/build/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ export { createServer } from "./server.js";
3
+ export { LighthouseAPI } from "./api.js";