@oss-autopilot/mcp 1.0.1 → 1.0.3
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 +159 -0
- package/dist/mcp-server.bundle.cjs +12607 -2650
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +7 -1
- package/dist/prompts.js.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +11 -1
- package/dist/tools.js.map +1 -1
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# @oss-autopilot/mcp
|
|
2
|
+
|
|
3
|
+
MCP server for [OSS Autopilot](https://github.com/costajohnt/oss-autopilot) — exposes PR tracking, issue discovery, and contribution management as MCP tools for any MCP-compatible client.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@oss-autopilot/mcp)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## What It Provides
|
|
10
|
+
|
|
11
|
+
| Feature | Count | Description |
|
|
12
|
+
|---------|-------|-------------|
|
|
13
|
+
| **Tools** | 21 | `daily`, `status`, `search`, `vet`, `track`, `untrack`, `read`, `comments`, `post`, `claim`, `config`, `init`, `setup`, `check-setup`, `startup`, `shelve`, `unshelve`, `dismiss`, `undismiss`, `snooze`, `unsnooze` |
|
|
14
|
+
| **Resources** | 5 | `oss://status`, `oss://config`, `oss://prs`, `oss://prs/shelved`, `oss://pr/{owner}/{repo}/{number}` |
|
|
15
|
+
| **Prompts** | 3 | `triage` (PR prioritization), `respond-to-pr` (draft response), `find-issues` (discover issues) |
|
|
16
|
+
|
|
17
|
+
Supports **stdio** (default) and **Streamable HTTP** transports.
|
|
18
|
+
|
|
19
|
+
## Prerequisites
|
|
20
|
+
|
|
21
|
+
- Node.js 20+
|
|
22
|
+
- [GitHub CLI](https://cli.github.com/) authenticated (`gh auth login`)
|
|
23
|
+
|
|
24
|
+
## Quick Start
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 1. Initialize with your GitHub username
|
|
28
|
+
npx @oss-autopilot/mcp@latest --init <your-github-username>
|
|
29
|
+
|
|
30
|
+
# 2. Add the server to your MCP client (see config examples below)
|
|
31
|
+
|
|
32
|
+
# 3. Use the tools — e.g. "daily" to check your PRs, "search" to find issues
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Client Configuration
|
|
36
|
+
|
|
37
|
+
### Claude Desktop
|
|
38
|
+
|
|
39
|
+
Add to your `claude_desktop_config.json`:
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"mcpServers": {
|
|
44
|
+
"oss-autopilot": {
|
|
45
|
+
"command": "npx",
|
|
46
|
+
"args": ["@oss-autopilot/mcp@latest"]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Cursor
|
|
53
|
+
|
|
54
|
+
Add to `.cursor/mcp.json` in your project or global config:
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
{
|
|
58
|
+
"mcpServers": {
|
|
59
|
+
"oss-autopilot": {
|
|
60
|
+
"command": "npx",
|
|
61
|
+
"args": ["@oss-autopilot/mcp@latest"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Codex CLI
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
codex mcp add oss -- npx @oss-autopilot/mcp@latest
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Windsurf
|
|
74
|
+
|
|
75
|
+
Add to your Windsurf MCP config:
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"mcpServers": {
|
|
80
|
+
"oss-autopilot": {
|
|
81
|
+
"command": "npx",
|
|
82
|
+
"args": ["@oss-autopilot/mcp@latest"]
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Streamable HTTP (any client)
|
|
89
|
+
|
|
90
|
+
Run the server in HTTP mode instead of stdio:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npx @oss-autopilot/mcp@latest --http --port 3001
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The server listens at `http://127.0.0.1:3001/mcp` and accepts POST requests.
|
|
97
|
+
|
|
98
|
+
## Tools Reference
|
|
99
|
+
|
|
100
|
+
| Tool | Description | Read-only |
|
|
101
|
+
|------|-------------|-----------|
|
|
102
|
+
| `daily` | Run daily PR monitoring check with prioritized summary | No |
|
|
103
|
+
| `status` | Show current PR tracking status | Yes |
|
|
104
|
+
| `search` | Search GitHub for contributable issues | Yes |
|
|
105
|
+
| `vet` | Analyze an issue for contribution suitability | Yes |
|
|
106
|
+
| `track` | Start tracking a pull request | No |
|
|
107
|
+
| `untrack` | Stop tracking a pull request | No |
|
|
108
|
+
| `read` | Mark PR notifications as read | No |
|
|
109
|
+
| `comments` | Fetch and display PR comments | Yes |
|
|
110
|
+
| `post` | Post a comment on an issue or PR | No |
|
|
111
|
+
| `claim` | Claim an issue by posting a comment | No |
|
|
112
|
+
| `config` | Get or set configuration values | No |
|
|
113
|
+
| `init` | Initialize with a GitHub username | No |
|
|
114
|
+
| `setup` | Configure preferences (languages, interests) | No |
|
|
115
|
+
| `check-setup` | Check if setup is complete | Yes |
|
|
116
|
+
| `startup` | Run startup checks (auth, state, config) | No |
|
|
117
|
+
| `shelve` | Temporarily hide a PR from daily checks | No |
|
|
118
|
+
| `unshelve` | Return a shelved PR to active monitoring | No |
|
|
119
|
+
| `dismiss` | Dismiss an issue or PR from notifications | No |
|
|
120
|
+
| `undismiss` | Re-enable notifications for a dismissed item | No |
|
|
121
|
+
| `snooze` | Snooze a PR for a number of days | No |
|
|
122
|
+
| `unsnooze` | Unsnooze a PR immediately | No |
|
|
123
|
+
|
|
124
|
+
## Resources Reference
|
|
125
|
+
|
|
126
|
+
| Resource URI | Description |
|
|
127
|
+
|-------------|-------------|
|
|
128
|
+
| `oss://status` | PR tracking status (cached local state) |
|
|
129
|
+
| `oss://config` | Current configuration |
|
|
130
|
+
| `oss://prs` | Active open PRs from last daily digest |
|
|
131
|
+
| `oss://prs/shelved` | Shelved PRs |
|
|
132
|
+
| `oss://pr/{owner}/{repo}/{number}` | Detail for a specific PR |
|
|
133
|
+
|
|
134
|
+
## Prompts Reference
|
|
135
|
+
|
|
136
|
+
| Prompt | Args | Description |
|
|
137
|
+
|--------|------|-------------|
|
|
138
|
+
| `triage` | none | Fetches daily digest and builds a prioritized triage list |
|
|
139
|
+
| `respond-to-pr` | `prUrl` | Fetches PR comments and context for drafting a response |
|
|
140
|
+
| `find-issues` | `maxResults?` | Searches for issues ranked by viability score |
|
|
141
|
+
|
|
142
|
+
## Programmatic Usage
|
|
143
|
+
|
|
144
|
+
The server can also be imported and used as a library:
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import { createServer } from '@oss-autopilot/mcp';
|
|
148
|
+
|
|
149
|
+
const server = createServer();
|
|
150
|
+
// Connect to your own transport
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## More Information
|
|
154
|
+
|
|
155
|
+
See the [main repository README](https://github.com/costajohnt/oss-autopilot) for the full documentation, including the Claude Code plugin, CLI usage, dashboard, and contributing guide.
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
MIT
|