@hypequery/mcp 0.9.0 → 0.10.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.
- package/README.md +70 -0
- package/dist/executor.d.ts +3 -3
- package/dist/executor.d.ts.map +1 -1
- package/dist/http-executor.d.ts +40 -0
- package/dist/http-executor.d.ts.map +1 -0
- package/dist/http-executor.js +178 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/protocol-server.js +3 -3
- package/dist/tools/args.d.ts +65 -123
- package/dist/tools/args.d.ts.map +1 -1
- package/dist/tools/args.js +3 -1
- package/dist/tools/tool-manifest.d.ts +1 -1
- package/dist/tools/tool-manifest.d.ts.map +1 -1
- package/dist/tools/tool-manifest.js +1 -47
- package/dist/tools/utils/canonical-query-schemas.d.ts +1 -1
- package/dist/tools/utils/canonical-query-schemas.d.ts.map +1 -1
- package/dist/tools/utils/canonical-query-schemas.js +1 -1
- package/dist/tools/utils/result-schema.d.ts +5 -0
- package/dist/tools/utils/result-schema.d.ts.map +1 -0
- package/dist/tools/utils/result-schema.js +47 -0
- package/dist/utils/http-client/arguments.d.ts +3 -0
- package/dist/utils/http-client/arguments.d.ts.map +1 -0
- package/dist/utils/http-client/arguments.js +26 -0
- package/dist/utils/http-client/discovery.d.ts +6 -0
- package/dist/utils/http-client/discovery.d.ts.map +1 -0
- package/dist/utils/http-client/discovery.js +24 -0
- package/dist/utils/http-client/json.d.ts +6 -0
- package/dist/utils/http-client/json.d.ts.map +1 -0
- package/dist/utils/http-client/json.js +79 -0
- package/dist/utils/http-client/manifest.d.ts +5 -0
- package/dist/utils/http-client/manifest.d.ts.map +1 -0
- package/dist/utils/http-client/manifest.js +53 -0
- package/dist/utils/http-client/profile.d.ts +5 -0
- package/dist/utils/http-client/profile.d.ts.map +1 -0
- package/dist/utils/http-client/profile.js +29 -0
- package/dist/utils/http-client/result.d.ts +4 -0
- package/dist/utils/http-client/result.d.ts.map +1 -0
- package/dist/utils/http-client/result.js +98 -0
- package/dist/utils/http-client/transport.d.ts +12 -0
- package/dist/utils/http-client/transport.d.ts.map +1 -0
- package/dist/utils/http-client/transport.js +88 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +12 -6
- package/dist/api.type-test.d.ts +0 -2
- package/dist/api.type-test.d.ts.map +0 -1
- package/dist/api.type-test.js +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypequery/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Governed ClickHouse MCP server for semantic metrics, datasets, Claude, Cursor, and AI agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -30,18 +30,24 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
|
-
"dist"
|
|
33
|
+
"dist",
|
|
34
|
+
"!dist/**/*.test.*",
|
|
35
|
+
"!dist/**/*.type-test.*",
|
|
36
|
+
"!dist/**/__tests__/**",
|
|
37
|
+
"!dist/**/tests/**",
|
|
38
|
+
"!dist/**/type-tests/**"
|
|
34
39
|
],
|
|
35
40
|
"dependencies": {
|
|
36
|
-
"@hypequery/datasets": "^0.
|
|
41
|
+
"@hypequery/datasets": "^0.25.0",
|
|
37
42
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
38
|
-
"zod": "^
|
|
43
|
+
"zod": "^4.6.6",
|
|
44
|
+
"@hypequery/protocol": "0.22.0"
|
|
39
45
|
},
|
|
40
46
|
"devDependencies": {
|
|
41
47
|
"@types/node": "^20.11.30",
|
|
42
48
|
"typescript": "^6.0.3",
|
|
43
|
-
"vitest": "^5.0.
|
|
44
|
-
"@hypequery/clickhouse": "2.
|
|
49
|
+
"vitest": "^5.0.5",
|
|
50
|
+
"@hypequery/clickhouse": "2.14.0"
|
|
45
51
|
},
|
|
46
52
|
"repository": {
|
|
47
53
|
"type": "git",
|
package/dist/api.type-test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.type-test.d.ts","sourceRoot":"","sources":["../src/api.type-test.ts"],"names":[],"mappings":""}
|
package/dist/api.type-test.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { expectTypeOf, it } from 'vitest';
|
|
2
|
-
import { dataset, dimension, measure } from '@hypequery/datasets';
|
|
3
|
-
import { HypequeryMCPExecutor, HypequeryMCPProtocolServer, HypequeryMCPServer, MCPToolError, connectMCPServerStdio, createMCPExecutor, createMCPProtocolServer, createMCPServer, startStdioMCPServer, } from './index.js';
|
|
4
|
-
it('exports the transport-neutral and backwards-compatible MCP APIs', () => {
|
|
5
|
-
expectTypeOf(HypequeryMCPExecutor).toBeConstructibleWith({});
|
|
6
|
-
expectTypeOf(HypequeryMCPProtocolServer).toBeConstructibleWith({});
|
|
7
|
-
expectTypeOf(HypequeryMCPServer).toBeConstructibleWith({});
|
|
8
|
-
expectTypeOf(createMCPExecutor).returns.toMatchTypeOf();
|
|
9
|
-
expectTypeOf(createMCPProtocolServer).returns.toMatchTypeOf();
|
|
10
|
-
expectTypeOf(connectMCPServerStdio).returns.toMatchTypeOf();
|
|
11
|
-
expectTypeOf(startStdioMCPServer).returns.toMatchTypeOf();
|
|
12
|
-
expectTypeOf(createMCPServer).returns.toMatchTypeOf();
|
|
13
|
-
expectTypeOf(new MCPToolError('MCP_UNAUTHORIZED', 'Forbidden').code)
|
|
14
|
-
.toMatchTypeOf();
|
|
15
|
-
});
|
|
16
|
-
it('accepts segments in the exported query argument types', () => {
|
|
17
|
-
expectTypeOf().toEqualTypeOf();
|
|
18
|
-
expectTypeOf().toEqualTypeOf();
|
|
19
|
-
const _orders = dataset('orders', {
|
|
20
|
-
source: 'orders',
|
|
21
|
-
dimensions: { status: dimension.string() },
|
|
22
|
-
measures: { revenue: measure.sum('amount') },
|
|
23
|
-
segments: { paid: { filters: [{ field: 'status', operator: 'eq', value: 'paid' }] } },
|
|
24
|
-
});
|
|
25
|
-
expectTypeOf()
|
|
26
|
-
.toEqualTypeOf();
|
|
27
|
-
expectTypeOf()
|
|
28
|
-
.toEqualTypeOf();
|
|
29
|
-
expectTypeOf().toEqualTypeOf();
|
|
30
|
-
expectTypeOf().toEqualTypeOf();
|
|
31
|
-
});
|