Skip to content

Commit b2dd10f

Browse files
0.3.10
1 parent 55b552a commit b2dd10f

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkedapi-mcp",
3-
"version": "0.3.9",
3+
"version": "0.3.10",
44
"description": "MCP server that lets AI assistants control LinkedIn accounts and retrieve real-time data.",
55
"main": "dist/index.js",
66
"bin": {
@@ -31,7 +31,7 @@
3131
"license": "MIT",
3232
"dependencies": {
3333
"@modelcontextprotocol/sdk": "^1.17.4",
34-
"linkedapi-node": "^1.2.12",
34+
"linkedapi-node": "^1.2.13",
3535
"zod": "^4.1.1"
3636
},
3737
"devDependencies": {

src/linked-api-server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export class LinkedApiMCPServer {
5252

5353
const startTime = Date.now();
5454
try {
55-
const tool = this.tools.toolByName(toolName)!;
55+
const tool = this.tools.toolByName(toolName);
56+
if (!tool) {
57+
throw new Error(`Unknown tool: ${toolName}`);
58+
}
5659
const params = tool.validate(args);
5760
const { data, errors } = await tool.execute({
5861
linkedapi,

src/tools/retrieve-connections.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class RetrieveConnectionsTool extends OperationTool<
1616
public override readonly operationName = OPERATION_NAME.retrieveConnections;
1717
protected override readonly schema = z.object({
1818
limit: z.number().min(1).max(1000).optional(),
19+
since: z.string().optional(),
1920
filter: z
2021
.object({
2122
firstName: z.string().optional(),
@@ -43,6 +44,11 @@ export class RetrieveConnectionsTool extends OperationTool<
4344
description:
4445
'Optional. Number of connections to return. Defaults to 10, with a maximum value of 1000.',
4546
},
47+
since: {
48+
type: 'string',
49+
description:
50+
'Optional. ISO date string that filters connections to only include those made on or after the specified date. Only works when filter is not provided.',
51+
},
4652
filter: {
4753
type: 'object',
4854
description:

0 commit comments

Comments
 (0)