Skip to content

Commit 816c089

Browse files
authored
Merge branch 'CoplayDev:main' into main
2 parents 0f89329 + df906cb commit 816c089

40 files changed

+473
-354
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish Docker image 🐳
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
jobs:
9+
push_to_registry:
10+
name: Push Docker image to Docker Hub
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out the repo
15+
uses: actions/checkout@v6
16+
17+
- name: Log in to Docker Hub
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_PASSWORD }}
22+
23+
- name: Extract metadata (tags, labels) for Docker
24+
id: meta
25+
uses: docker/metadata-action@v5
26+
with:
27+
images: ${{ secrets.DOCKER_USERNAME }}/mcp-for-unity-server
28+
tags: |
29+
type=semver,pattern={{version}}
30+
type=semver,pattern={{major}}.{{minor}}
31+
type=ref,event=branch
32+
type=sha
33+
34+
- name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v3
36+
37+
- name: Build and push Docker image
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
file: Server/Dockerfile
42+
platforms: linux/amd64
43+
push: true
44+
tags: ${{ steps.meta.outputs.tags }}
45+
labels: ${{ steps.meta.outputs.labels }}
46+
cache-from: type=gha
47+
cache-to: type=gha,mode=max

.github/workflows/publish-pypi.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: Build distribution 📦
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: ./Server
16+
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v7
22+
with:
23+
version: "latest"
24+
enable-cache: true
25+
cache-dependency-glob: "Server/uv.lock"
26+
27+
- name: Build a binary wheel and a source tarball
28+
run: uv build
29+
30+
- name: Store the distribution packages
31+
uses: actions/upload-artifact@v6
32+
with:
33+
name: python-package-distributions
34+
path: Server/dist/
35+
36+
publish-to-pypi:
37+
name: >-
38+
Publish Python 🐍 distribution 📦 to PyPI
39+
needs:
40+
- build
41+
runs-on: ubuntu-latest
42+
environment:
43+
name: pypi
44+
url: https://pypi.org/p/mcpforunityserver
45+
permissions:
46+
id-token: write
47+
48+
steps:
49+
- name: Download all the dists
50+
uses: actions/download-artifact@v7
51+
with:
52+
name: python-package-distributions
53+
path: dist/
54+
- name: Publish distribution 📦 to PyPI
55+
uses: pypa/gh-action-pypi-publish@release/v1
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using MCPForUnity.Editor.Models;
5+
6+
namespace MCPForUnity.Editor.Clients.Configurators
7+
{
8+
public class KiloCodeConfigurator : JsonFileMcpConfigurator
9+
{
10+
public KiloCodeConfigurator() : base(new McpClient
11+
{
12+
name = "Kilo Code",
13+
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Code", "User", "globalStorage", "kilocode.kilo-code", "settings", "mcp_settings.json"),
14+
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "Code", "User", "globalStorage", "kilocode.kilo-code", "settings", "mcp_settings.json"),
15+
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "Code", "User", "globalStorage", "kilocode.kilo-code", "settings", "mcp_settings.json"),
16+
IsVsCodeLayout = true
17+
})
18+
{ }
19+
20+
public override IList<string> GetInstallationSteps() => new List<string>
21+
{
22+
"Install Kilo Code extension in VS Code",
23+
"Open Kilo Code settings (gear icon in sidebar)",
24+
"Navigate to MCP Servers section and click 'Edit Global MCP Settings'\nOR open the config file at the path above",
25+
"Paste the configuration JSON into the mcpServers object",
26+
"Save and restart VS Code"
27+
};
28+
}
29+
}

MCPForUnity/Editor/Config/McpDistributionSettings.cs.meta renamed to MCPForUnity/Editor/Clients/Configurators/KiloCodeConfigurator.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MCPForUnity/Editor/Clients/Configurators/RiderConfigurator.cs.meta

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

MCPForUnity/Editor/Clients/Configurators/VSCodeInsidersConfigurator.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MCPForUnity/Editor/Config.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

MCPForUnity/Editor/Config/McpDistributionSettings.cs

Lines changed: 0 additions & 105 deletions
This file was deleted.

MCPForUnity/Editor/Data.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

MCPForUnity/Editor/Dependencies/DependencyManager.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)