Skip to content

Commit dec117e

Browse files
committed
Updates to set executable for npm
1 parent dd28ef0 commit dec117e

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "@pnp/cli-microsoft365-mcp-server",
3-
"version": "0.1.1",
3+
"version": "0.1.3",
44
"description": "Model Context Protocol (MCP) server for CLI for Microsoft 365 that allows to use natural language to manage your Microsoft 365 tenant.",
55
"author": "Microsoft 365 & Power Platform Community",
66
"license": "MIT",
77
"main": "dist/index.js",
8+
"bin": {
9+
"cli-microsoft365-mcp-server": "dist/index.js"
10+
},
811
"type": "module",
912
"keywords": [
1013
"Microsoft365",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
24
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
35
import { z } from 'zod';

src/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { exec, spawn } from 'child_process';
22
import path from 'path';
33
import { promises as fs } from 'fs';
44

5+
56
export async function runCliCommand(command: string): Promise<string> {
67
return new Promise((resolve, reject) => {
78
const subprocess = spawn(command, {

0 commit comments

Comments
 (0)