teryt-mcp 0.1.1 → 0.1.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/dist/{chunk-GSWKF6BK.js → chunk-Q5BJHXKD.js} +13 -42
- package/dist/cli.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
// src/version.ts
|
|
2
|
+
var terytMcpVersion = "0.1.2";
|
|
3
|
+
|
|
1
4
|
// src/features/server-status/application/get-server-status.ts
|
|
2
5
|
function getServerStatus(input) {
|
|
3
6
|
return {
|
|
4
7
|
serverName: "teryt-mcp",
|
|
5
|
-
serverVersion:
|
|
8
|
+
serverVersion: terytMcpVersion,
|
|
6
9
|
frameworkVersion: input.frameworkVersion,
|
|
7
10
|
transport: input.transport,
|
|
8
11
|
dataDir: input.dataDir,
|
|
@@ -1295,7 +1298,7 @@ function normalizeName(value) {
|
|
|
1295
1298
|
}
|
|
1296
1299
|
|
|
1297
1300
|
// src/features/resolve-address/mcp/resolve-address.tool.ts
|
|
1298
|
-
import { defineTool as defineTool6,
|
|
1301
|
+
import { defineTool as defineTool6, readQueryLimitInput } from "@mcp-craftman/core";
|
|
1299
1302
|
function createResolveAddressTool(dependencies) {
|
|
1300
1303
|
return defineTool6({
|
|
1301
1304
|
inputSchema,
|
|
@@ -1308,7 +1311,7 @@ function createResolveAddressTool(dependencies) {
|
|
|
1308
1311
|
readOnlyHint: true
|
|
1309
1312
|
},
|
|
1310
1313
|
handler: async (input) => ({
|
|
1311
|
-
structuredContent: await resolveAddress(
|
|
1314
|
+
structuredContent: await resolveAddress(readQueryLimitInput(input, "resolve_address"), dependencies)
|
|
1312
1315
|
})
|
|
1313
1316
|
});
|
|
1314
1317
|
}
|
|
@@ -1420,14 +1423,6 @@ var outputSchema = {
|
|
|
1420
1423
|
},
|
|
1421
1424
|
required: ["addresses", "stateDate"]
|
|
1422
1425
|
};
|
|
1423
|
-
function parseInput4(input) {
|
|
1424
|
-
const query = readRequiredStringField4(input, "query", "resolve_address");
|
|
1425
|
-
const limit = readOptionalNumberField(input, "limit", "resolve_address");
|
|
1426
|
-
return {
|
|
1427
|
-
limit,
|
|
1428
|
-
query
|
|
1429
|
-
};
|
|
1430
|
-
}
|
|
1431
1426
|
|
|
1432
1427
|
// src/features/search-places/application/search-places.ts
|
|
1433
1428
|
var DEFAULT_LIMIT2 = 20;
|
|
@@ -1502,7 +1497,7 @@ function normalizeName2(value) {
|
|
|
1502
1497
|
}
|
|
1503
1498
|
|
|
1504
1499
|
// src/features/search-places/mcp/search-places.tool.ts
|
|
1505
|
-
import { defineTool as defineTool7,
|
|
1500
|
+
import { defineTool as defineTool7, readQueryLimitInput as readQueryLimitInput2 } from "@mcp-craftman/core";
|
|
1506
1501
|
function createSearchPlacesTool(dependencies) {
|
|
1507
1502
|
return defineTool7({
|
|
1508
1503
|
name: "search_places",
|
|
@@ -1578,18 +1573,10 @@ function createSearchPlacesTool(dependencies) {
|
|
|
1578
1573
|
readOnlyHint: true
|
|
1579
1574
|
},
|
|
1580
1575
|
handler: async (input) => ({
|
|
1581
|
-
structuredContent: await searchPlaces(
|
|
1576
|
+
structuredContent: await searchPlaces(readQueryLimitInput2(input, "search_places"), dependencies)
|
|
1582
1577
|
})
|
|
1583
1578
|
});
|
|
1584
1579
|
}
|
|
1585
|
-
function parseInput5(input) {
|
|
1586
|
-
const query = readRequiredStringField5(input, "query", "search_places");
|
|
1587
|
-
const limit = readOptionalNumberField2(input, "limit", "search_places");
|
|
1588
|
-
return {
|
|
1589
|
-
limit,
|
|
1590
|
-
query
|
|
1591
|
-
};
|
|
1592
|
-
}
|
|
1593
1580
|
|
|
1594
1581
|
// src/features/search-streets/application/search-streets.ts
|
|
1595
1582
|
var DEFAULT_LIMIT3 = 20;
|
|
@@ -1664,7 +1651,7 @@ function normalizeName3(value) {
|
|
|
1664
1651
|
}
|
|
1665
1652
|
|
|
1666
1653
|
// src/features/search-streets/mcp/search-streets.tool.ts
|
|
1667
|
-
import { defineTool as defineTool8,
|
|
1654
|
+
import { defineTool as defineTool8, readQueryLimitInput as readQueryLimitInput3 } from "@mcp-craftman/core";
|
|
1668
1655
|
function createSearchStreetsTool(dependencies) {
|
|
1669
1656
|
return defineTool8({
|
|
1670
1657
|
inputSchema: inputSchema2,
|
|
@@ -1677,7 +1664,7 @@ function createSearchStreetsTool(dependencies) {
|
|
|
1677
1664
|
readOnlyHint: true
|
|
1678
1665
|
},
|
|
1679
1666
|
handler: async (input) => ({
|
|
1680
|
-
structuredContent: await searchStreets(
|
|
1667
|
+
structuredContent: await searchStreets(readQueryLimitInput3(input, "search_streets"), dependencies)
|
|
1681
1668
|
})
|
|
1682
1669
|
});
|
|
1683
1670
|
}
|
|
@@ -1749,14 +1736,6 @@ var outputSchema2 = {
|
|
|
1749
1736
|
},
|
|
1750
1737
|
required: ["stateDate", "streets"]
|
|
1751
1738
|
};
|
|
1752
|
-
function parseInput6(input) {
|
|
1753
|
-
const query = readRequiredStringField6(input, "query", "search_streets");
|
|
1754
|
-
const limit = readOptionalNumberField3(input, "limit", "search_streets");
|
|
1755
|
-
return {
|
|
1756
|
-
limit,
|
|
1757
|
-
query
|
|
1758
|
-
};
|
|
1759
|
-
}
|
|
1760
1739
|
|
|
1761
1740
|
// src/features/search-units/application/search-units.ts
|
|
1762
1741
|
var DEFAULT_LIMIT4 = 20;
|
|
@@ -1831,7 +1810,7 @@ function normalizeName4(value) {
|
|
|
1831
1810
|
}
|
|
1832
1811
|
|
|
1833
1812
|
// src/features/search-units/mcp/search-units.tool.ts
|
|
1834
|
-
import { defineTool as defineTool9,
|
|
1813
|
+
import { defineTool as defineTool9, readQueryLimitInput as readQueryLimitInput4 } from "@mcp-craftman/core";
|
|
1835
1814
|
function createSearchUnitsTool(dependencies) {
|
|
1836
1815
|
return defineTool9({
|
|
1837
1816
|
name: "search_units",
|
|
@@ -1907,18 +1886,10 @@ function createSearchUnitsTool(dependencies) {
|
|
|
1907
1886
|
readOnlyHint: true
|
|
1908
1887
|
},
|
|
1909
1888
|
handler: async (input) => ({
|
|
1910
|
-
structuredContent: await searchUnits(
|
|
1889
|
+
structuredContent: await searchUnits(readQueryLimitInput4(input, "search_units"), dependencies)
|
|
1911
1890
|
})
|
|
1912
1891
|
});
|
|
1913
1892
|
}
|
|
1914
|
-
function parseInput7(input) {
|
|
1915
|
-
const query = readRequiredStringField7(input, "query", "search_units");
|
|
1916
|
-
const limit = readOptionalNumberField4(input, "limit", "search_units");
|
|
1917
|
-
return {
|
|
1918
|
-
limit,
|
|
1919
|
-
query
|
|
1920
|
-
};
|
|
1921
|
-
}
|
|
1922
1893
|
|
|
1923
1894
|
// src/features/source-status/application/get-source-status.ts
|
|
1924
1895
|
async function getSourceStatus(input) {
|
|
@@ -2348,7 +2319,7 @@ function createApp(config = loadRuntimeConfig(), overrides = {}) {
|
|
|
2348
2319
|
const syncSource = overrides.syncSource ?? new EterytSource();
|
|
2349
2320
|
return createMcpApp({
|
|
2350
2321
|
name: "teryt-mcp",
|
|
2351
|
-
version:
|
|
2322
|
+
version: terytMcpVersion,
|
|
2352
2323
|
registry: createRegistry({
|
|
2353
2324
|
config,
|
|
2354
2325
|
manifestStore,
|
package/dist/cli.js
CHANGED
package/dist/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teryt-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "MCP server for the official Polish TERYT registry.",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@mcp-craftman/core": "^0.1.
|
|
18
|
+
"@mcp-craftman/core": "^0.1.3",
|
|
19
19
|
"@mcp-craftman/node": "^0.1.2",
|
|
20
20
|
"fflate": "^0.8.3",
|
|
21
21
|
"sql.js": "^1.14.1"
|