@beepflow/mcp 2026.4.0 → 2026.4.2
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 +15 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,6 +32,21 @@ Check next version:
|
|
|
32
32
|
make -C mcp compute-next-version
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
## Codex MCP install (local)
|
|
36
|
+
```sh
|
|
37
|
+
make -C mcp codex-install-dev
|
|
38
|
+
make -C mcp codex-install-live
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Public install:
|
|
42
|
+
```sh
|
|
43
|
+
codex mcp add beepflow -- npx -y @beepflow/mcp
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Switch easy: both targets install same MCP name `beepflow`.
|
|
47
|
+
- `codex-install-dev`: local `src/index.ts`
|
|
48
|
+
- `codex-install-live`: published `npx -y @beepflow/mcp`
|
|
49
|
+
|
|
35
50
|
## Auth tools
|
|
36
51
|
- `auth_email_request_code` `{ "email": "you@domain.com" }`
|
|
37
52
|
- `auth_email_verify_code` `{ "email": "you@domain.com", "code": "123456" }`
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import{stdin as k,stdout as R}from"node:process";function U(e){let t=new Map;for(let p of e.tools)t.set(p.name,p);let n=!1,o="",s={start:()=>{k.setEncoding("utf8"),k.on("data",p=>c(typeof p=="string"?p:p.toString("utf8"))),k.on("end",()=>r("stdin-end")),k.on("error",()=>r("stdin-error"))}};function r(p){if(!n){n=!0;try{R.write(JSON.stringify({jsonrpc:"2.0",method:"notifications/message",params:{level:"info",data:`server closing: ${p}`}})+`
|
|
2
3
|
`)}catch{}}}function c(p){for(o+=p;;){let d=o.indexOf(`
|
|
3
4
|
`);if(d===-1)return;let u=o.slice(0,d).trim();if(o=o.slice(d+1),!u)continue;let f;try{f=JSON.parse(u)}catch{continue}i(f)}}async function i(p){if(n)return;let d=p.id===void 0,u=p.id??null;try{switch(p.method){case"initialize":{let h={protocolVersion:(p.params??{}).protocolVersion??"2024-11-05",serverInfo:{name:e.serverName,version:e.serverVersion},capabilities:{tools:{}}};if(d)return;a({jsonrpc:"2.0",id:u,result:h});return}case"notifications/initialized":return;case"notifications/cancelled":return;case"logging/setLevel":{if(d)return;a({jsonrpc:"2.0",id:u,result:{}});return}case"ping":{if(d)return;a({jsonrpc:"2.0",id:u,result:{}});return}case"tools/list":{if(d)return;let f=e.tools.map(m=>({name:m.name,description:m.description,inputSchema:m.inputSchema}));a({jsonrpc:"2.0",id:u,result:{tools:f}});return}case"tools/call":{if(d)return;let f=p.params??{},m=typeof f.name=="string"?f.name:"",h=t.get(m);if(!h){a({jsonrpc:"2.0",id:u,error:{code:-32601,message:`unknown tool: ${m}`}});return}let G=await h.call(f.arguments);a({jsonrpc:"2.0",id:u,result:G});return}case"resources/list":{if(d)return;a({jsonrpc:"2.0",id:u,result:{resources:[]}});return}case"prompts/list":{if(d)return;a({jsonrpc:"2.0",id:u,result:{prompts:[]}});return}default:{if(d)return;a({jsonrpc:"2.0",id:u,error:{code:-32601,message:`method not found: ${p.method}`}})}}}catch(f){if(d)return;a({jsonrpc:"2.0",id:u,error:{code:-32603,message:f?.message??"internal error"}})}}function a(p){n||R.write(JSON.stringify(p)+`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beepflow/mcp",
|
|
3
|
-
"version": "2026.4.
|
|
3
|
+
"version": "2026.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.6.0"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start:src": "node --experimental-strip-types ./src/index.ts",
|
|
19
19
|
"test:src": "node --experimental-strip-types --test ./src/**/*.test.ts",
|
|
20
|
-
"build": "node --input-type=module -e \"import fs from 'node:fs'; fs.rmSync('dist', { recursive: true, force: true });\" && tsc -p tsconfig.json --noEmit && esbuild src/index.ts --bundle --platform=node --format=esm --target=node24 --minify --outfile=dist/index.js",
|
|
20
|
+
"build": "node --input-type=module -e \"import fs from 'node:fs'; fs.rmSync('dist', { recursive: true, force: true });\" && tsc -p tsconfig.json --noEmit && esbuild src/index.ts --bundle --platform=node --format=esm --target=node24 --minify --banner:js='#!/usr/bin/env node' --outfile=dist/index.js && node --input-type=module -e \"import fs from 'node:fs'; fs.chmodSync('dist/index.js', 0o755);\"",
|
|
21
21
|
"start": "node ./dist/index.js",
|
|
22
22
|
"test": "yarn test:src && yarn build && node ./dist/index.js < /dev/null",
|
|
23
23
|
"prepack": "yarn build"
|