Skip to content

Commit b07d21d

Browse files
Initial commit
Co-authored-by: Cursor <cursoragent@cursor.com>
0 parents  commit b07d21d

35 files changed

Lines changed: 7483 additions & 0 deletions

.claude-plugin/plugin.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "cursor-usage",
3+
"displayName": "Cursor Usage",
4+
"version": "0.1.0",
5+
"description": "Query and analyze your Cursor Enterprise team's AI usage, spending, and adoption metrics. Wraps the full Cursor Admin and Analytics APIs as MCP tools with expert data interpretation skills.",
6+
"author": {
7+
"name": "Ofer Shapira",
8+
"url": "https://github.com/ofershap"
9+
},
10+
"homepage": "https://github.com/ofershap/cursor-usage-tracker",
11+
"repository": "https://github.com/ofershap/cursor-usage",
12+
"license": "MIT"
13+
}

.cursor-plugin/marketplace.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "cursor-usage",
3+
"owner": {
4+
"name": "Ofer Shapira",
5+
"email": "ofer@shapira.dev"
6+
},
7+
"metadata": {
8+
"description": "Cursor Enterprise usage tracking and analytics plugin",
9+
"version": "0.1.0"
10+
},
11+
"plugins": [
12+
{
13+
"name": "cursor-usage",
14+
"source": ".",
15+
"description": "Query and analyze your Cursor Enterprise team's AI usage, spending, and adoption metrics directly from the IDE."
16+
}
17+
]
18+
}

.cursor-plugin/plugin.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "cursor-usage",
3+
"displayName": "Cursor Usage",
4+
"version": "0.1.0",
5+
"description": "Query and analyze your Cursor Enterprise team's AI usage, spending, and adoption metrics directly from the IDE. Wraps the full Cursor Admin and Analytics APIs.",
6+
"author": {
7+
"name": "Ofer Shapira",
8+
"email": "ofer@shapira.dev",
9+
"url": "https://github.com/ofershap"
10+
},
11+
"homepage": "https://github.com/ofershap/cursor-usage-tracker",
12+
"repository": "https://github.com/ofershap/cursor-usage",
13+
"license": "MIT",
14+
"keywords": [
15+
"cursor",
16+
"usage",
17+
"spending",
18+
"analytics",
19+
"enterprise",
20+
"admin",
21+
"cost",
22+
"monitoring",
23+
"team",
24+
"ai-spend"
25+
],
26+
"logo": "assets/logo.svg",
27+
"mcpServers": "mcp.json"
28+
}

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Cursor Enterprise Admin API key
2+
# Get this from: Cursor → Settings → Team → API Keys
3+
CURSOR_API_KEY=your-api-key-here

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: ofershap

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [20, 22]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: npm
27+
28+
- run: npm ci
29+
- run: npm run typecheck
30+
- run: npm run lint
31+
- run: npm run format:check
32+
- run: npm run build
33+
- run: npm test
34+
- run: npm run validate

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
registry-url: https://registry.npmjs.org
21+
cache: npm
22+
23+
- run: npm ci
24+
- run: npm run build
25+
- run: npm test
26+
27+
- run: npm publish --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
31+
- name: Create GitHub Release
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
generate_release_notes: true

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules/
2+
dist/
3+
*.tsbuildinfo
4+
.env
5+
.env.*
6+
!.env.example
7+
coverage/
8+
launch/
9+
.DS_Store
10+
*.log
11+
tmp/

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
node_modules/
3+
*.svg

0 commit comments

Comments
 (0)