@rigstate/mcp 0.5.3 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigstate/mcp",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Rigstate MCP Server - Model Context Protocol for AI Editors",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -40,7 +40,6 @@ async function generateQueryEmbedding(query: string): Promise<number[] | null> {
40
40
  const googleKey = process.env.GOOGLE_GENERATIVE_AI_API_KEY;
41
41
 
42
42
  if (!openRouterKey && !googleKey) {
43
- console.warn('Neither OPENROUTER_API_KEY nor GOOGLE_GENERATIVE_AI_API_KEY found, skipping vector search.');
44
43
  return null;
45
44
  }
46
45
 
@@ -66,7 +65,6 @@ async function generateQueryEmbedding(query: string): Promise<number[] | null> {
66
65
  return embedding;
67
66
  }
68
67
  } catch (error) {
69
- console.error('Failed to generate embedding for search:', error);
70
68
  return null;
71
69
  }
72
70
  }
@@ -98,9 +96,6 @@ export async function queryBrain(
98
96
  let memories: MemoryRecord[] = [];
99
97
 
100
98
  // Use the hybrid search RPC
101
- console.log(`Searching brain for "${query}" (limit: ${limit}, threshold: ${threshold})`);
102
- console.log(`Embedding present: ${!!embedding}`);
103
-
104
99
  const { data: searchResults, error: searchError } = await supabase
105
100
  .rpc('hybrid_search_memories', {
106
101
  p_project_id: projectId,
@@ -111,7 +106,6 @@ export async function queryBrain(
111
106
  });
112
107
 
113
108
  if (searchError) {
114
- console.error('Hybrid search error:', searchError);
115
109
  // Fallback to basic recent fetch if RPC fails
116
110
  const { data: recentMemories } = await supabase
117
111
  .from('project_memories')
@@ -132,7 +126,6 @@ export async function queryBrain(
132
126
  }));
133
127
  }
134
128
  } else if (searchResults) {
135
- console.log(`Found ${searchResults.length} results from RPC`);
136
129
  memories = searchResults.map((m: any) => ({
137
130
  id: m.id,
138
131
  content: m.content,