Skip to content
Merged
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
40 changes: 3 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,9 @@ on:
push:
branches:
- main
paths:
- 'src/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- '.github/workflows/build.yml'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run linting
run: npm run lint

- name: Run tests
run: npm run test

- name: Build extension
run: npm run build

- name: Package VSIX
run: npx @vscode/vsce package -o CodingWithCalvin.VSC-MCPServer.vsix

- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vsix
path: CodingWithCalvin.VSC-MCPServer.vsix
uses: CodingWithCalvin/.github/.github/workflows/vsc-vsix-build.yml@main
with:
extension-name: VSC-MCPServer
59 changes: 0 additions & 59 deletions .github/workflows/commit-lint.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: Update Contributors

on:
schedule:
- cron: '0 0 * * *'
- cron: '0 6 * * *' # 1:00 AM EST / 2:00 AM EDT
workflow_dispatch:

jobs:
contributors:
uses: CodingWithCalvin/.github/.github/workflows/contributors.yml@main
with:
output_format: html
secrets: inherit
33 changes: 33 additions & 0 deletions .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint PR Title

on:
pull_request:
types: [opened, edited, reopened, synchronize]

permissions:
contents: read
pull-requests: read

jobs:
lint-pr-title:
name: Lint PR Title
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install commitlint
run: |
npm install --save-dev @commitlint/cli@18.4.3 @commitlint/config-conventional@18.4.3

- name: Validate PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "Validating PR title: $PR_TITLE"
echo "$PR_TITLE" | npx commitlint --verbose
104 changes: 6 additions & 98 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,106 +2,14 @@ name: Publish to VS Code Marketplace

on:
workflow_dispatch:
inputs:
version:
description: 'Version to release (e.g., 1.0.0)'
required: true
type: string

permissions:
contents: write
actions: read

jobs:
publish:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test

- name: Build extension
run: npm run build

- name: Set version
id: version
run: |
npm version ${{ inputs.version }} --no-git-tag-version --allow-same-version
echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT

- name: Package VSIX
run: npx @vscode/vsce package -o CodingWithCalvin.VSC-MCPServer.vsix

- name: Publish to VS Code Marketplace
run: npx @vscode/vsce publish -p ${{ secrets.VS_PAT }}

- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vsix
path: CodingWithCalvin.VSC-MCPServer.vsix

changelog:
needs: publish
uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main
secrets: inherit

release:
needs: [publish, changelog]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download VSIX artifact
uses: actions/download-artifact@v4
with:
name: vsix

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ needs.publish.outputs.version }}
name: v${{ needs.publish.outputs.version }}
body: ${{ needs.changelog.outputs.changelog }}
files: CodingWithCalvin.VSC-MCPServer.vsix

bluesky:
needs: [publish, release]
uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
with:
post_text: |
πŸš€ VSC as MCP v${{ needs.publish.outputs.version }} has been released!

[GitHub Release](https://github.com/CodingWithCalvin/VSC-MCPServer/releases/tag/v${{ needs.publish.outputs.version }})
[VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VSC-MCPServer)
embed_title: "VSC as MCP v${{ needs.publish.outputs.version }}"
embed_description: "Supercharge your AI coding assistants with VS Code's powerful language intelligence!"
secrets: inherit

x:
needs: [publish, release]
uses: CodingWithCalvin/.github/.github/workflows/x-post.yml@main
uses: CodingWithCalvin/.github/.github/workflows/vsc-vsix-publish.yml@main
with:
post_text: |
πŸš€ VSC as MCP v${{ needs.publish.outputs.version }} has been released!

GitHub Release: https://github.com/CodingWithCalvin/VSC-MCPServer/releases/tag/v${{ needs.publish.outputs.version }}
VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VSC-MCPServer
extension-name: VSC-MCPServer
display-name: "VSC as MCP"
marketplace-id: CodingWithCalvin.VSC-MCPServer
description: "Supercharge your AI coding assistants with VS Code's powerful language intelligence!"
hashtags: "#mcp #ai #claude"
secrets: inherit

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1 align="center">VSC as MCP</h1>

<p align="center">
<strong>Supercharge your AI coding assistants with VS Code's powerful language intelligence!</strong>
<strong>πŸš€ Supercharge your AI coding assistants with VS Code's powerful language intelligence!</strong>
</p>

<p align="center">
Expand Down Expand Up @@ -75,7 +75,7 @@ A Visual Studio Code extension that exposes an MCP (Model Context Protocol) serv
1. Open VS Code
2. Go to **Extensions** (Ctrl+Shift+X)
3. Search for "VSC as MCP"
4. Click **Install**
4. Click **Install** πŸŽ‰

### Manual Installation

Expand Down Expand Up @@ -151,7 +151,7 @@ Contributions are welcome! Whether it's bug reports, feature requests, or pull r
1. Clone the repository
2. Run `npm install`
3. Run `npm run build`
4. Press F5 to launch the Extension Development Host
4. Press F5 to launch the Extension Development Host πŸŽ‰

## πŸ“„ License

Expand Down
File renamed without changes
Loading