@walkeros/mcp 4.0.0-next-1777463920154 → 4.0.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/stdio.js +10 -7
- package/dist/stdio.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ declare function createWalkerOSMcpServer(opts: CreateServerOptions): McpServer;
|
|
|
146
146
|
* delegates to the CLI's programmatic API, which in turn talks to the
|
|
147
147
|
* walkerOS app over HTTPS via openapi-fetch. Token resolution and the
|
|
148
148
|
* base URL come from the CLI's config file and environment
|
|
149
|
-
* (WALKEROS_TOKEN,
|
|
149
|
+
* (WALKEROS_TOKEN, WALKEROS_APP_URL), so no constructor args are required.
|
|
150
150
|
*/
|
|
151
151
|
declare class HttpToolClient implements ToolClient {
|
|
152
152
|
listProjects(): Promise<unknown>;
|
package/dist/index.js
CHANGED
|
@@ -960,7 +960,7 @@ async function feedbackHandlerBody(client, input) {
|
|
|
960
960
|
const isAnonymous = explicitAnonymous ?? anonymous ?? true;
|
|
961
961
|
await client.submitFeedback(text, {
|
|
962
962
|
anonymous: isAnonymous,
|
|
963
|
-
version: "4.0.0
|
|
963
|
+
version: "4.0.0"
|
|
964
964
|
});
|
|
965
965
|
return mcpResult5({ ok: true });
|
|
966
966
|
} catch (error) {
|
|
@@ -1741,7 +1741,7 @@ var NPM_SEARCH_URL = "https://registry.npmjs.org/-/v1/search";
|
|
|
1741
1741
|
var JSDELIVR_BASE = "https://cdn.jsdelivr.net/npm";
|
|
1742
1742
|
var WALKEROS_JSON_PATH = "dist/walkerOS.json";
|
|
1743
1743
|
var CACHE_TTL = 5 * 60 * 1e3;
|
|
1744
|
-
var CLIENT_HEADER = "walkeros-mcp/4.0.0
|
|
1744
|
+
var CLIENT_HEADER = "walkeros-mcp/4.0.0";
|
|
1745
1745
|
var cache;
|
|
1746
1746
|
function normalizePlatform(platform) {
|
|
1747
1747
|
if (platform == null) return [];
|
|
@@ -1835,6 +1835,9 @@ function applyFilters(entries, filters) {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
|
|
1837
1837
|
// src/tools/package.ts
|
|
1838
|
+
function getPackageBaseUrl() {
|
|
1839
|
+
return process.env.WALKEROS_APP_URL || void 0;
|
|
1840
|
+
}
|
|
1838
1841
|
var SEARCH_TITLE = "Search Package";
|
|
1839
1842
|
var SEARCH_DESCRIPTION = "Start here for package discovery. Never guess package names: use this tool first to find exact names. Without package name: returns catalog filtered by type/platform. With package name: returns metadata, hint keys, and example summaries.";
|
|
1840
1843
|
var searchInputSchema = {
|
|
@@ -1868,7 +1871,7 @@ async function packageSearchHandlerBody(input) {
|
|
|
1868
1871
|
platform,
|
|
1869
1872
|
version
|
|
1870
1873
|
} = input ?? {};
|
|
1871
|
-
const baseUrl =
|
|
1874
|
+
const baseUrl = getPackageBaseUrl();
|
|
1872
1875
|
if (!packageName) {
|
|
1873
1876
|
const catalog = await fetchCatalog({ type, platform, baseUrl });
|
|
1874
1877
|
const result = { catalog, count: catalog.length };
|
|
@@ -1950,7 +1953,7 @@ async function packageGetHandlerBody(input) {
|
|
|
1950
1953
|
version,
|
|
1951
1954
|
section
|
|
1952
1955
|
} = input ?? {};
|
|
1953
|
-
const baseUrl =
|
|
1956
|
+
const baseUrl = getPackageBaseUrl();
|
|
1954
1957
|
try {
|
|
1955
1958
|
const info = await fetchPackage(packageName, {
|
|
1956
1959
|
version,
|