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
33 changes: 33 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- '**' # Run on all branches

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm ci
- run: npm install -g tsx
- run: npm run build # Add build step if needed
- run: npm test

publish:
needs: test
if: github.ref == 'refs/heads/main' # Only run this job on main branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm ci
- run: npm install -g tsx
- run: npm run build # Add build step here too
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema } from "@modelcontextprot
const server = new Server(
{
name: "task-manager-server",
version: "1.0.5"
version: "1.0.6"
},
{
capabilities: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taskqueue-mcp",
"version": "1.0.5",
"version": "1.0.6",
"description": "Task Queue MCP Server",
"author": "Christopher C. Smith ([email protected])",
"main": "dist/index.js",
Expand All @@ -19,7 +19,7 @@
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsc && node dist/index.js",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"test": "tsc && NODE_OPTIONS=--experimental-vm-modules jest",
"approve-task": "node dist/src/cli.js approve-task",
"list-tasks": "node dist/src/cli.js list"
},
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/mcp-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it, expect, beforeAll, afterAll } from '@jest/globals';
import * as path from 'node:path';
import * as os from 'node:os';
import * as fs from 'node:fs/promises';
import { Tool } from "@modelcontextprotocol/sdk/types.js";
import process from 'node:process';

interface ToolResponse {
isError: boolean;
Expand All @@ -29,7 +29,7 @@ describe('MCP Client Integration', () => {

// Set up the transport with environment variable for test file
transport = new StdioClientTransport({
command: "node",
command: process.execPath, // Use full path to current Node.js executable
args: ["dist/index.js"],
env: {
TASK_MANAGER_FILE_PATH: testFilePath,
Expand All @@ -38,7 +38,7 @@ describe('MCP Client Integration', () => {
}
});

console.log('Created transport with command:', 'node', 'dist/index.js');
console.log('Created transport with command:', process.execPath, 'dist/index.js');

// Set up the client
client = new Client(
Expand Down