Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vibe/development-plan-publish-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ if (args.length === 0) {
- [x] Fix CLI routing issue - entry point was not properly awaiting imports
- [x] Fix missing CLI dependencies in main package (commander, chalk, ora)
- [x] Fix MCP server import - call startServer() function instead of importing index.js
- [x] Debug npx execution - added debug output to see what arguments npx passes
- [x] **FOUND ROOT CAUSE**: Local packaging script doesn't include packages/ directory in tarball

### Completed

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentic-knowledge-mcp",
"version": "0.1.4",
"version": "0.1.5",
"description": "A Model Context Protocol server for agentic knowledge guidance with web-based documentation loading and intelligent search instructions",
"type": "module",
"main": "packages/mcp-server/dist/index.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ const __dirname = dirname(__filename);
async function main() {
const args = process.argv.slice(2);

// Debug output to stderr so it doesn't interfere with CLI output
console.error(`[DEBUG] process.argv: ${JSON.stringify(process.argv)}`);
console.error(`[DEBUG] args: ${JSON.stringify(args)}`);
console.error(`[DEBUG] args.length: ${args.length}`);

if (args.length === 0) {
console.error("[DEBUG] No args - starting MCP server");
// No arguments, start MCP server
const isLocal = existsSync(
join(__dirname, "../../mcp-server/dist/index.js"),
Expand All @@ -31,6 +37,7 @@ async function main() {
await startServer();
}
} else {
console.error("[DEBUG] Has args - starting CLI");
// Any arguments, run CLI
const { runCli } = await import("./cli.js");
runCli();
Expand Down
Loading