Skip to content
Open
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 .github/workflows/pr-package-json-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

permissions:
contents: read
issues: write
pull-requests: write

jobs:
Expand Down Expand Up @@ -42,6 +43,7 @@ jobs:
if: steps.package-changes.outputs.changes_detected == 'true'
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');

Expand Down
30 changes: 22 additions & 8 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
Expand Up @@ -51,13 +51,13 @@
"license": "MIT",
"dependencies": {
"@dynatrace/openkit-js": "^4.2.0",
"@modelcontextprotocol/sdk": "^1.21.2",
"@modelcontextprotocol/sdk": "^1.24.0",
"axios": "^1.13.1",
"commander": "^14.0.2",
"open": "^8.4.2",
"undici": "^7.16.0",
"winston": "^3.18.3",
"zod-to-json-schema": "^3.24.6"
"zod-to-json-schema": "~3.25.0"
},
"devDependencies": {
"@types/axios": "^0.14.4",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Never run queries that could return very large amounts of data, or that could be
annotations: ToolAnnotations,
cb: (args: z.objectOutputType<ZodRawShape, ZodTypeAny>) => Promise<string>,
) => {
const wrappedCb = async (args: ZodRawShape): Promise<CallToolResult> => {
const wrappedCb = async (args: any): Promise<CallToolResult> => {
// Capture starttime for telemetry and rate limiting
const startTime = Date.now();

Expand Down Expand Up @@ -283,7 +283,7 @@ Never run queries that could return very large amounts of data, or that could be
}
};

server.tool(name, description, paramsSchema, annotations, (args: z.ZodRawShape) => wrappedCb(args));
server.registerTool(name, { description: description }, (args: any) => wrappedCb(args));
};

tool(
Expand Down
Loading