m365connector 0.2.0 → 0.3.1
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/package.json +1 -1
- package/src/index.js +7 -5
- package/src/tools/search.js +4 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -8,9 +8,12 @@ import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/
|
|
|
8
8
|
import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
9
9
|
import { WsServer } from "./ws-server.js";
|
|
10
10
|
|
|
11
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const PKG = JSON.parse(fs.readFileSync(path.resolve(__dirname, "..", "package.json"), "utf-8"));
|
|
13
|
+
|
|
11
14
|
const SERVER_INFO = {
|
|
12
|
-
name:
|
|
13
|
-
version:
|
|
15
|
+
name: PKG.name,
|
|
16
|
+
version: PKG.version
|
|
14
17
|
};
|
|
15
18
|
|
|
16
19
|
const DEFAULT_MCP_PORT = 52366;
|
|
@@ -63,8 +66,7 @@ function createReadHandleCache() {
|
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
async function loadToolModules(toolRegistry, context) {
|
|
66
|
-
const
|
|
67
|
-
const toolsDir = path.resolve(currentDir, "tools");
|
|
69
|
+
const toolsDir = path.resolve(__dirname, "tools");
|
|
68
70
|
const files = fs
|
|
69
71
|
.readdirSync(toolsDir)
|
|
70
72
|
.filter((name) => name.endsWith(".js"))
|
|
@@ -261,7 +263,7 @@ async function main() {
|
|
|
261
263
|
server.once("error", reject);
|
|
262
264
|
});
|
|
263
265
|
|
|
264
|
-
stderrLogger.error(`[m365connector] MCP HTTP listening on http://127.0.0.1:${mcpPort}/mcp`);
|
|
266
|
+
stderrLogger.error(`[m365connector] MCP HTTP listening on http://127.0.0.1:${mcpPort}/mcp (v${PKG.version})`);
|
|
265
267
|
|
|
266
268
|
let shuttingDown = false;
|
|
267
269
|
const shutdown = async () => {
|
package/src/tools/search.js
CHANGED
|
@@ -153,8 +153,11 @@ export function registerTools(registry, context) {
|
|
|
153
153
|
location: publicRow.location,
|
|
154
154
|
startTime: publicRow.startTime,
|
|
155
155
|
endTime: publicRow.endTime,
|
|
156
|
-
attendees: publicRow.attendees,
|
|
157
156
|
organizer: publicRow.organizer,
|
|
157
|
+
organizerName: publicRow.organizerName,
|
|
158
|
+
isAllDay: publicRow.isAllDay,
|
|
159
|
+
isCancelled: publicRow.isCancelled,
|
|
160
|
+
showAs: publicRow.showAs,
|
|
158
161
|
jobTitle: publicRow.jobTitle,
|
|
159
162
|
department: publicRow.department,
|
|
160
163
|
email: publicRow.email,
|