poe-code 3.0.200 → 3.0.201
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.js +6 -5
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39689,7 +39689,7 @@ function matchesAllowlist(toolName, allowlist) {
|
|
|
39689
39689
|
function formatToolName(path94) {
|
|
39690
39690
|
return path94.map((segment) => formatSegment(segment, "snake")).join("__");
|
|
39691
39691
|
}
|
|
39692
|
-
function enumerateTools(root, casing, allowlist) {
|
|
39692
|
+
function enumerateTools(root, casing, allowlist, omitRootToolNamePrefix) {
|
|
39693
39693
|
const tools = [];
|
|
39694
39694
|
function visit(node, toolPath, commandPath) {
|
|
39695
39695
|
if (node.kind === "command") {
|
|
@@ -39719,7 +39719,7 @@ function enumerateTools(root, casing, allowlist) {
|
|
|
39719
39719
|
visit(child, nextToolPath, nextCommandPath);
|
|
39720
39720
|
}
|
|
39721
39721
|
}
|
|
39722
|
-
const rootPath = root.name.length === 0 ? [] : [root.name];
|
|
39722
|
+
const rootPath = omitRootToolNamePrefix || root.name.length === 0 ? [] : [root.name];
|
|
39723
39723
|
for (const child of root.children) {
|
|
39724
39724
|
visit(child, rootPath, []);
|
|
39725
39725
|
}
|
|
@@ -39888,7 +39888,7 @@ function createResolvedMCPServer(root, options) {
|
|
|
39888
39888
|
root
|
|
39889
39889
|
};
|
|
39890
39890
|
validateServices(services);
|
|
39891
|
-
const tools = enumerateTools(root, casing, options.tools);
|
|
39891
|
+
const tools = enumerateTools(root, casing, options.tools, options.omitRootToolNamePrefix ?? false);
|
|
39892
39892
|
const version = resolveMCPVersion(options.version);
|
|
39893
39893
|
const server = createServer({ name: options.name, version });
|
|
39894
39894
|
for (const tool of tools) {
|
|
@@ -40008,7 +40008,8 @@ var init_package = __esm({
|
|
|
40008
40008
|
async function runMarkdownReaderMcp() {
|
|
40009
40009
|
await runMCP(markdownGroup, {
|
|
40010
40010
|
name: "markdown-reader",
|
|
40011
|
-
version: package_default.version
|
|
40011
|
+
version: package_default.version,
|
|
40012
|
+
omitRootToolNamePrefix: true
|
|
40012
40013
|
});
|
|
40013
40014
|
}
|
|
40014
40015
|
var init_run2 = __esm({
|
|
@@ -56825,7 +56826,7 @@ var init_package2 = __esm({
|
|
|
56825
56826
|
"package.json"() {
|
|
56826
56827
|
package_default2 = {
|
|
56827
56828
|
name: "poe-code",
|
|
56828
|
-
version: "3.0.
|
|
56829
|
+
version: "3.0.201",
|
|
56829
56830
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
56830
56831
|
type: "module",
|
|
56831
56832
|
main: "./dist/index.js",
|