functionalscript 0.31.1 → 0.32.0

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.
@@ -129,14 +129,6 @@ export const commands = [
129
129
  .step(forEachStep(j => log(vecToCBase32(j))))
130
130
  .step(() => pure(0));
131
131
  },
132
- },
133
- {
134
- names: ['mcp'],
135
- description: 'Run an MCP server over stdio exposing the CAS as tools',
136
- handler: ({ home }) => {
137
- const c = cas(sha256)(fileKvStore(home));
138
- return casMcpServer(c, hash => join(home, toPath(hash))).step(() => pure(0));
139
- },
140
- },
132
+ }
141
133
  ];
142
134
  export const main = dispatch(commands);
@@ -9,6 +9,11 @@ import { commands as casCommands } from "../cas/module.f.js";
9
9
  import { main as ciMain } from "../ci/module.f.js";
10
10
  import { import_ } from "../effects/node/module.f.js";
11
11
  import { dispatch } from "../cli/module.f.js";
12
+ import { casMcpServer } from "../cas/mcp/module.f.js";
13
+ import { cas, fileKvStore, toPath } from "../cas/module.f.js";
14
+ import { sha256 } from "../crypto/sha2/module.f.js";
15
+ import { join } from "../path/module.f.js";
16
+ import { pure } from "../effects/module.f.js";
12
17
  const commands = [
13
18
  {
14
19
  names: ['test', 't'],
@@ -25,6 +30,14 @@ const commands = [
25
30
  description: 'Content-addressable storage operations',
26
31
  handler: casCommands,
27
32
  },
33
+ {
34
+ names: ['mcp', 'm'],
35
+ description: 'Run an MCP server over stdio exposing the CAS as tools',
36
+ handler: ({ home }) => {
37
+ const c = cas(sha256)(fileKvStore(home));
38
+ return casMcpServer(c, hash => join(home, toPath(hash))).step(() => pure(0));
39
+ },
40
+ },
28
41
  {
29
42
  names: ['ci', 'i'],
30
43
  description: 'Generate the GitHub Actions CI workflow',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.31.1",
3
+ "version": "0.32.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "**/*.js",