@meetlark/mcp-server 1.0.0
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/README.md +74 -0
- package/bin/cli.ts +8 -0
- package/dist/bin/cli.d.ts +1 -0
- package/dist/bin/cli.js +10 -0
- package/dist/chunk-AFREFQH7.js +14238 -0
- package/dist/src/index.d.ts +26 -0
- package/dist/src/index.js +8 -0
- package/package.json +23 -0
- package/server.json +12 -0
- package/smithery.yaml +12 -0
- package/src/client.ts +96 -0
- package/src/config.ts +2 -0
- package/src/index.ts +3 -0
- package/src/server.ts +28 -0
- package/src/tools/close-poll.ts +75 -0
- package/src/tools/create-poll.ts +84 -0
- package/src/tools/get-admin.ts +64 -0
- package/src/tools/get-results.ts +64 -0
- package/src/tools/index.ts +6 -0
- package/src/tools/reopen-poll.ts +75 -0
- package/src/tools/vote.ts +88 -0
- package/test/cli.test.ts +44 -0
- package/test/client.test.ts +234 -0
- package/test/route.test.ts +112 -0
- package/test/server.test.ts +87 -0
- package/test/setup.test.ts +27 -0
- package/test/tools.test.ts +265 -0
- package/tsconfig.json +15 -0
- package/tsup.config.ts +8 -0
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# @meetlark/mcp-server
|
|
2
|
+
|
|
3
|
+
MCP server for MeetLark - agent-first scheduling polls.
|
|
4
|
+
|
|
5
|
+
Create polls, collect availability votes, and find times that work for groups. No accounts needed.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx @meetlark/mcp-server
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Configuration
|
|
14
|
+
|
|
15
|
+
### Claude Desktop
|
|
16
|
+
|
|
17
|
+
Add to your Claude Desktop config (`claude_desktop_config.json`):
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"meetlark": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["@meetlark/mcp-server"]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Cursor
|
|
31
|
+
|
|
32
|
+
Add to your Cursor MCP settings (`.cursor/mcp.json`):
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"mcpServers": {
|
|
37
|
+
"meetlark": {
|
|
38
|
+
"command": "npx",
|
|
39
|
+
"args": ["@meetlark/mcp-server"]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Tools
|
|
46
|
+
|
|
47
|
+
| Tool | Description |
|
|
48
|
+
|------|-------------|
|
|
49
|
+
| `meetlark_create_poll` | Create a scheduling poll to find a time that works for a group |
|
|
50
|
+
| `meetlark_get_results` | View current poll results including all votes cast so far |
|
|
51
|
+
| `meetlark_vote` | Cast a vote on a scheduling poll (yes/maybe/no per time slot) |
|
|
52
|
+
| `meetlark_get_admin_view` | Get full poll details and results using the admin token |
|
|
53
|
+
| `meetlark_close_poll` | Close a poll to stop accepting new votes |
|
|
54
|
+
| `meetlark_reopen_poll` | Reopen a previously closed poll to accept votes again |
|
|
55
|
+
|
|
56
|
+
## Environment Variables
|
|
57
|
+
|
|
58
|
+
| Variable | Default | Description |
|
|
59
|
+
|----------|---------|-------------|
|
|
60
|
+
| `MEETLARK_API_URL` | `https://meetlark.ai` | Base URL for the MeetLark API |
|
|
61
|
+
|
|
62
|
+
## Remote Endpoint
|
|
63
|
+
|
|
64
|
+
A hosted MCP endpoint is available at:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
https://meetlark.ai/mcp
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
This is a stateless Streamable HTTP endpoint -- no session persistence, no authentication required. Connect any MCP client directly.
|
|
71
|
+
|
|
72
|
+
## Documentation
|
|
73
|
+
|
|
74
|
+
Full documentation at [meetlark.ai/agents](https://meetlark.ai/agents).
|
package/bin/cli.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
+
import { createMeetLarkServer } from "../src/server.js";
|
|
5
|
+
|
|
6
|
+
const server = createMeetLarkServer();
|
|
7
|
+
const transport = new StdioServerTransport();
|
|
8
|
+
await server.connect(transport);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/bin/cli.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
createMeetLarkServer
|
|
4
|
+
} from "../chunk-AFREFQH7.js";
|
|
5
|
+
|
|
6
|
+
// bin/cli.ts
|
|
7
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
8
|
+
var server = createMeetLarkServer();
|
|
9
|
+
var transport = new StdioServerTransport();
|
|
10
|
+
await server.connect(transport);
|