Skip to content

Commit f80e2e1

Browse files
authored
Merge pull request CoplayDev#1222 from Scriptwonder/revamp/brand-distribution-analytics
Revamp brand, docs, distribution, and analytics
2 parents 819d7d3 + 3e98413 commit f80e2e1

61 files changed

Lines changed: 1752 additions & 214 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ jobs:
7070

7171
- name: Build
7272
working-directory: website
73+
env:
74+
# Inject the cookieless GoatCounter beacon when provisioned. The site
75+
# gates on process.env.GOATCOUNTER_CODE, which Actions does NOT
76+
# auto-expose — the Actions variable must be mapped in explicitly.
77+
GOATCOUNTER_CODE: ${{ vars.GOATCOUNTER_CODE }}
7378
run: npm run build
7479

7580
- name: Upload Pages artifact

.github/workflows/stats.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Adoption stats (maintainer-only)
2+
# Posts unified PyPI install + docs-traffic numbers to the workflow run summary,
3+
# which is visible ONLY to repo collaborators. Nothing is published publicly.
4+
on:
5+
schedule:
6+
- cron: '0 6 * * *'
7+
workflow_dispatch: {}
8+
permissions:
9+
contents: read
10+
jobs:
11+
stats:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with: { node-version: 20 }
17+
- name: Fetch + summarize stats (private to collaborators)
18+
env:
19+
# public stars/forks work with the default token; unique cloners/viewers
20+
# need a maintainer PAT with Administration: read (STATS_GITHUB_TOKEN).
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
STATS_GITHUB_TOKEN: ${{ secrets.STATS_GITHUB_TOKEN }}
23+
GOATCOUNTER_TOKEN: ${{ secrets.GOATCOUNTER_TOKEN }}
24+
GOATCOUNTER_SITE: ${{ secrets.GOATCOUNTER_SITE }}
25+
run: node website/scripts/fetch-stats.mjs >> "$GITHUB_STEP_SUMMARY"

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ tools/.unity-check-logs/
6969
# Ignore the .claude directory, since it might contain local/project-level setting such as deny and allowlist.
7070
/.claude
7171
.mcp.json
72+
73+
# Superpowers skill working artifacts (specs, plans, SDD ledger)
74+
docs/superpowers/
75+
.superpowers/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace MCPForUnity.Editor.Constants
2+
{
3+
/// <summary>Canonical user-facing product identity strings.</summary>
4+
public static class ProductInfo
5+
{
6+
public const string ProductName = "MCP for Unity";
7+
public const string MenuRoot = "Window/MCP for Unity";
8+
}
9+
}

MCPForUnity/Editor/Constants/ProductInfo.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/Helpers/McpLogRecord.cs.meta

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

MCPForUnity/Editor/MenuItems/MCPForUnityMenu.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using MCPForUnity.Editor.Constants;
12
using MCPForUnity.Editor.Setup;
23
using MCPForUnity.Editor.Windows;
34
using UnityEditor;
@@ -7,20 +8,20 @@ namespace MCPForUnity.Editor.MenuItems
78
{
89
public static class MCPForUnityMenu
910
{
10-
[MenuItem("Window/MCP For Unity/Toggle MCP Window %#m", priority = 1)]
11+
[MenuItem(ProductInfo.MenuRoot + "/Toggle MCP Window %#m", priority = 1)]
1112
public static void ToggleMCPWindow()
1213
{
1314
MCPForUnityEditorWindow.ShowWindow();
1415
}
1516

16-
[MenuItem("Window/MCP For Unity/Local Setup Window", priority = 2)]
17+
[MenuItem(ProductInfo.MenuRoot + "/Local Setup Window", priority = 2)]
1718
public static void ShowSetupWindow()
1819
{
1920
SetupWindowService.ShowSetupWindow();
2021
}
2122

2223

23-
[MenuItem("Window/MCP For Unity/Edit EditorPrefs", priority = 3)]
24+
[MenuItem(ProductInfo.MenuRoot + "/Edit EditorPrefs", priority = 3)]
2425
public static void ShowEditorPrefsWindow()
2526
{
2627
EditorPrefsWindow.ShowWindow();

MCPForUnity/Editor/Services/HttpAutoStartHandler.cs.meta

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

MCPForUnity/Editor/Services/PackageJobManager.cs.meta

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

MCPForUnity/Editor/Services/Server/ServerCommandBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public bool TryBuildCommand(out string fileName, out string arguments, out strin
2626
bool useHttpTransport = EditorConfigurationCache.Instance.UseHttpTransport;
2727
if (!useHttpTransport)
2828
{
29-
error = "HTTP transport is disabled. Enable it in the MCP For Unity window first.";
29+
error = $"HTTP transport is disabled. Enable it in the {ProductInfo.ProductName} window first.";
3030
return false;
3131
}
3232

0 commit comments

Comments
 (0)