@crediolabs/policy-builder-mcp 0.1.6 → 0.1.8

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Untangled Finance Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -17,10 +17,15 @@ npx @crediolabs/policy-builder-mcp
17
17
 
18
18
  ```sh
19
19
  policy-builder-mcp # stdio transport (default; Claude Desktop / local agents)
20
- policy-builder-mcp --http # Streamable HTTP transport on localhost
21
- policy-builder-mcp --http-port N # override the HTTP port (default 3001)
20
+ policy-builder-mcp --http # Streamable HTTP transport on default port 3001
21
+ policy-builder-mcp --http --http-port N # Streamable HTTP transport on port N
22
22
  ```
23
23
 
24
+ Note: `--http-port` only takes effect when `--http` is also supplied (without
25
+ `--http` the server stays on stdio regardless of `--http-port`). The port
26
+ override must be an integer in `1..65535`; otherwise the default `3001` is
27
+ used. Source of truth: [`bin/server.ts`](./bin/server.ts).
28
+
24
29
  ### Use with an MCP client (e.g. Claude Desktop)
25
30
 
26
31
  ```json
@@ -1,7 +1,7 @@
1
- export { RecordTransactionInputSchema, RecordTransactionToolShape, SynthesizePolicyInputSchema, SynthesizePolicyMandateInputSchema, SynthesizePolicyRecordingInputSchema, SynthesizePolicyToolShape, } from './schemas.ts';
1
+ export { type RunRecordTransactionInput, type RunSynthesizePolicyInput, runRecordTransaction, runSynthesizePolicy, } from '@crediolabs/policy-synth/run';
2
+ export { RecordTransactionToolShape, SynthesizePolicyToolShape, } from './schemas.ts';
2
3
  export { createMcpServer, registerTools } from './server.ts';
3
4
  export type { McpToolError, McpToolResult } from './tools/result.ts';
4
5
  export { mcpErrorFromCore, mcpResultFromCore } from './tools/result.ts';
5
- export { type RunRecordTransactionInput, type RunSynthesizePolicyInput, runRecordTransaction, runSynthesizePolicy, } from './tools/run.ts';
6
6
  export { startHttpServer } from './transports/http.ts';
7
7
  export { startStdioServer } from './transports/stdio.ts';
package/dist/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // apps/policy-builder-mcp/src/index.ts - public re-exports for the MCP server package.
2
- export { RecordTransactionInputSchema, RecordTransactionToolShape, SynthesizePolicyInputSchema, SynthesizePolicyMandateInputSchema, SynthesizePolicyRecordingInputSchema, SynthesizePolicyToolShape, } from "./schemas.js";
2
+ export { runRecordTransaction, runSynthesizePolicy, } from '@crediolabs/policy-synth/run';
3
+ export { RecordTransactionToolShape, SynthesizePolicyToolShape, } from "./schemas.js";
3
4
  export { createMcpServer, registerTools } from "./server.js";
4
5
  export { mcpErrorFromCore, mcpResultFromCore } from "./tools/result.js";
5
- export { runRecordTransaction, runSynthesizePolicy, } from "./tools/run.js";
6
6
  export { startHttpServer } from "./transports/http.js";
7
7
  export { startStdioServer } from "./transports/stdio.js";