midnight-mcp 0.1.5 → 0.1.7

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.
@@ -147,7 +147,9 @@ const EXAMPLES = [
147
147
  * Resolve repository name alias to owner/repo
148
148
  */
149
149
  function resolveRepo(repoName) {
150
- const normalized = repoName.toLowerCase().replace(/^midnightntwrk\//, "");
150
+ // Default to compact if not provided
151
+ const name = repoName || "compact";
152
+ const normalized = name.toLowerCase().replace(/^midnightntwrk\//, "");
151
153
  const alias = REPO_ALIASES[normalized];
152
154
  if (alias)
153
155
  return alias;
@@ -158,8 +160,8 @@ function resolveRepo(repoName) {
158
160
  }
159
161
  }
160
162
  // Assume it's a full org/repo name
161
- if (repoName.includes("/")) {
162
- const [owner, repo] = repoName.split("/");
163
+ if (name.includes("/")) {
164
+ const [owner, repo] = name.split("/");
163
165
  return { owner, repo };
164
166
  }
165
167
  return null;
@@ -278,7 +280,8 @@ export async function getLatestUpdates(input) {
278
280
  export async function getVersionInfo(input) {
279
281
  logger.debug("Getting version info", input);
280
282
  // Special handling for "midnight-examples" - redirect to listing examples
281
- const normalizedRepo = input.repo.toLowerCase();
283
+ const repoName = input.repo || "compact";
284
+ const normalizedRepo = repoName.toLowerCase();
282
285
  if (normalizedRepo === "midnight-examples" || normalizedRepo === "examples") {
283
286
  const exampleRepos = ["example-counter", "example-bboard", "example-dex"];
284
287
  const versions = await Promise.all(exampleRepos.map(async (repoName) => {
@@ -42,6 +42,13 @@ export const REPO_ALIASES = {
42
42
  owner: "midnightntwrk",
43
43
  repo: "compact-tree-sitter",
44
44
  },
45
+ "tree-sitter": { owner: "midnightntwrk", repo: "compact-tree-sitter" },
46
+ "setup-compact-action": {
47
+ owner: "midnightntwrk",
48
+ repo: "setup-compact-action",
49
+ },
50
+ "setup-compact": { owner: "midnightntwrk", repo: "setup-compact-action" },
51
+ "compact-action": { owner: "midnightntwrk", repo: "setup-compact-action" },
45
52
  // Community
46
53
  "midnight-awesome-dapps": {
47
54
  owner: "midnightntwrk",
@@ -151,6 +151,13 @@ export const DEFAULT_REPOSITORIES = [
151
151
  patterns: ["**/*.js", "**/*.md", "**/*.scm"],
152
152
  exclude: ["node_modules/**"],
153
153
  },
154
+ {
155
+ owner: "midnightntwrk",
156
+ repo: "setup-compact-action",
157
+ branch: "main",
158
+ patterns: ["**/*.ts", "**/*.js", "**/*.md", "**/*.yml", "**/*.yaml"],
159
+ exclude: ["node_modules/**", "dist/**"],
160
+ },
154
161
  // Community
155
162
  {
156
163
  owner: "midnightntwrk",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midnight-mcp",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Model Context Protocol Server for Midnight Blockchain Development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",