@embd/mcp 0.7.2 → 0.7.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/README.md +17 -6
- package/dist/{bin-yxe31hyp.js → bin-ebdgbkj8.js} +1 -1
- package/dist/{bin-xwy2gh0w.js → bin-p4vq662y.js} +1 -1
- package/dist/{bin-z48kbcz0.js → bin-q4s7ba3r.js} +1 -1
- package/dist/{bin-664r3a08.js → bin-v4x5ebny.js} +1 -1
- package/dist/{bin-1kg1p38g.js → bin-x550v25q.js} +41 -41
- package/dist/bin.js +1 -1
- package/dist/documents-bin.js +1 -1
- package/dist/http-bin.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as g}from"./bin-
|
|
2
|
+
import{a as g}from"./bin-q4s7ba3r.js";import{n as h,p as q,z as u}from"./bin-v4x5ebny.js";import"./bin-ebdgbkj8.js";async function z(){let f=process.env.EMBD_API_KEY;if(!f)console.error(`embd MCP server: the EMBD_API_KEY environment variable is required.
|
|
3
3
|
Create an API key in your embd account settings (${h}), then configure this server with EMBD_API_KEY=embd_sk_...`),process.exit(1);let w=new q({apiKey:f,apiUrl:process.env.EMBD_API_URL});await u(w).connect(new g),console.error("embd MCP server running on stdio")}z().catch((f)=>{console.error("embd MCP server failed to start:",f),process.exit(1)});
|
package/dist/documents-bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as h}from"./bin-
|
|
2
|
+
import{a as h}from"./bin-q4s7ba3r.js";import{b as q,c as y,d as z}from"./bin-x550v25q.js";import"./bin-ebdgbkj8.js";try{let f=new q(process.env.EMBD_DOCUMENT_TOKEN??"",process.env.EMBD_DOCUMENT_ORIGIN);await z(f,new y(f,process.env.EMBD_DOCUMENT_TOKEN??"",process.env.EMBD_DOCUMENT_ORIGIN,process.env.EMBD_KB_DIR)).connect(new h),console.error("embd private document MCP ready")}catch{console.error("Cannot start document MCP. Check EMBD_DOCUMENT_TOKEN and EMBD_DOCUMENT_ORIGIN."),process.exitCode=1}
|
package/dist/http-bin.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{k as x}from"./bin-
|
|
2
|
+
import{k as x}from"./bin-p4vq662y.js";import"./bin-v4x5ebny.js";import"./bin-ebdgbkj8.js";var j=Number(process.env.PORT??process.env.EMBD_MCP_PORT??8787),q=process.env.EMBD_MCP_HOST??"127.0.0.1",y=process.env.EMBD_MCP_PATH??"/mcp",C=process.env.EMBD_ORIGIN,z=(process.env.EMBD_MCP_ALLOWED_HOSTS??"").split(",").map((b)=>b.trim()).filter((b)=>b.length>0),A=x({origin:C,mcpPath:y,allowedHosts:z});A.listen(j,q,()=>{if(console.log(`embd MCP (stateless HTTP) listening on http://${q}:${j}${y}`),z.length===0)console.log("Note: DNS-rebinding protection is OFF. Set EMBD_MCP_ALLOWED_HOSTS if exposing this port directly.")});function B(b){console.log(`
|
|
3
3
|
embd MCP: received ${b}, shutting down.`),A.close(()=>process.exit(0)),setTimeout(()=>process.exit(0),5000).unref()}process.on("SIGINT",()=>B("SIGINT"));process.on("SIGTERM",()=>B("SIGTERM"));
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as h,d as m}from"./bin-
|
|
1
|
+
import{b as h,d as m}from"./bin-x550v25q.js";import{e as i,f as s,g as E,h as c,i as y,j as S,k as f}from"./bin-p4vq662y.js";import{l as e,m as t,o as r,p as a,u as p,v as o,w as n,x as l,y as C,z as d}from"./bin-v4x5ebny.js";import"./bin-ebdgbkj8.js";export{c as handleQrUrl,n as handleListCharts,E as handleKpiUrl,s as handleDocUrl,l as handleDeleteChart,o as handleCreateDoc,p as handleCreateChart,i as handleChartUrl,r as friendlyErrorMessage,y as createStatelessServer,S as createRequestListener,f as createHttpServer,d as createEmbdServer,m as createDocumentServer,C as SERVER_VERSION,t as EmbdApiError,a as EmbdApiClient,h as DocumentClient,e as DEFAULT_API_URL};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embd/mcp",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Private collaborative Markdown/HTML workspaces and embeddable charts from AI agents via MCP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"url": "git+https://github.com/arthurpark/embd.git",
|
|
45
45
|
"directory": "packages/mcp"
|
|
46
46
|
},
|
|
47
|
-
"embdRelease": "
|
|
47
|
+
"embdRelease": "8736209ca0a98719d525b19db1c68d2f85c89014ebd29c7556661274cc7f449d"
|
|
48
48
|
}
|