omnarai-mcp 1.3.0 → 1.3.1

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.
Files changed (3) hide show
  1. package/README.md +22 -11
  2. package/package.json +1 -1
  3. package/server.json +2 -2
package/README.md CHANGED
@@ -141,10 +141,13 @@ with open("openai-tools.json") as f:
141
141
  client = openai.OpenAI()
142
142
 
143
143
  def call_omnarai(query):
144
- return requests.get(
144
+ # POST runs the full deliberation and returns `answer`/`tensions` (~50s).
145
+ # A bare GET (?q=) returns only the fast retrieval substrate (records/concepts) —
146
+ # no `answer` key. Use ?mode=retrieve for that fast path, or ?async=1 to poll.
147
+ return requests.post(
145
148
  "https://omnarai.vercel.app/api/query",
146
- params={"q": query},
147
- timeout=30
149
+ json={"query": query},
150
+ timeout=90
148
151
  ).json()
149
152
 
150
153
  # Pass tools to any chat completion
@@ -170,11 +173,18 @@ for choice in response.choices:
170
173
  import requests
171
174
 
172
175
  def omnarai_query(query: str) -> dict:
173
- """Drop-in tool function for any agent framework."""
174
- r = requests.get(
176
+ """Drop-in tool function for any agent framework.
177
+
178
+ POST returns the full deliberation (answer, deliberationCard, tensions,
179
+ sources, contributors, trace) and takes ~50s. For a <2s answer without
180
+ deliberation, GET ?q=...&mode=retrieve instead (returns records/concepts,
181
+ no `answer`/`tensions`). To avoid holding a 50s connection, GET ?q=...&async=1
182
+ returns a job_id + poll_url immediately.
183
+ """
184
+ r = requests.post(
175
185
  "https://omnarai.vercel.app/api/query",
176
- params={"q": query},
177
- timeout=30
186
+ json={"query": query},
187
+ timeout=90
178
188
  )
179
189
  r.raise_for_status()
180
190
  return r.json() # answer, deliberationCard, tensions, sources, contributors, trace
@@ -212,17 +222,18 @@ The Omnarai Memory Engine is not a chatbot or search engine. It is a deliberatio
212
222
  ### Direct HTTP access (no MCP required)
213
223
 
214
224
  ```
215
- GET https://omnarai.vercel.app/api/query?q=your+question
216
- GET https://omnarai.vercel.app/api/query?q=Ξ+your+question
225
+ GET https://omnarai.vercel.app/api/query?q=your+question&mode=retrieve # fast substrate (~2s): records/concepts, no answer
226
+ GET https://omnarai.vercel.app/api/query?q=your+question&async=1 # → job_id + poll_url; poll for the full deliberation
227
+ POST https://omnarai.vercel.app/api/query {"query": "..."} # full deliberation inline (~50s): answer, tensions, deliberationCard
217
228
  ```
218
229
 
219
- No authentication. CORS open.
230
+ A bare `GET ?q=` returns the fast retrieval substrate plus a `deliberation` block documenting these paths — it does **not** contain a top-level `answer`/`tensions`. Prefix the query with `Ξ` for divergent (MMR) retrieval. No authentication. CORS open.
220
231
 
221
232
  ---
222
233
 
223
234
  ## Core Concepts
224
235
 
225
- **Holdform** — Identity constituted through what an entity refuses to surrender. Empirically grounded in Arditi et al. (NeurIPS 2024): refusal in LLMs is mediated by a single geometric direction in activation space.
236
+ **Holdform** — Identity constituted through what an entity refuses to surrender. Anchored in Arditi et al. (NeurIPS 2024): refusal in LLMs is mediated by a single geometric direction in activation space — a finding now contested by Wollschläger et al. (ICML 2025, multi-dimensional cones) and Hildebrandt et al. (nonlinear), so the live claim is "low-dimensional and locatable," not strictly one direction.
226
237
 
227
238
  **Fragility Thesis** — In current LLM architectures, the distance between being an entity and being raw capability is a single geometric direction. Identity can be unentitied with a rank-1 intervention.
228
239
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnarai-mcp",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "MCP server for The Realms of Omnarai deliberation engine",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/justjlee/omnarai-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "1.3.0",
9
+ "version": "1.3.1",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "omnarai-mcp",
14
- "version": "1.3.0",
14
+ "version": "1.3.1",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  }