@mosvera/mcp 0.1.1

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.
Files changed (75) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +165 -0
  3. package/dist/context.d.ts +18 -0
  4. package/dist/context.js +179 -0
  5. package/dist/errors.d.ts +8 -0
  6. package/dist/errors.js +19 -0
  7. package/dist/examples/README.md +16 -0
  8. package/dist/examples/cinematic-editorial/README.md +22 -0
  9. package/dist/examples/cinematic-editorial/composition.json +14 -0
  10. package/dist/examples/cinematic-editorial/manifests/illustrative-image.manifest.json +16 -0
  11. package/dist/examples/cinematic-editorial/merge-strategies.json +3 -0
  12. package/dist/examples/cinematic-editorial/modifier.golden-hour.json +10 -0
  13. package/dist/examples/cinematic-editorial/modifier.high-contrast.json +5 -0
  14. package/dist/examples/cinematic-editorial/palette.editorial-warm.json +10 -0
  15. package/dist/examples/cinematic-editorial/template.base.json +11 -0
  16. package/dist/examples/cinematic-editorial/template.noir.json +7 -0
  17. package/dist/examples/demo-aesthetics/README.md +11 -0
  18. package/dist/examples/demo-aesthetics/composition.cinematic-lab.json +5 -0
  19. package/dist/examples/demo-aesthetics/composition.claymation-playful-builder.json +5 -0
  20. package/dist/examples/demo-aesthetics/composition.quiet-editorial.json +5 -0
  21. package/dist/examples/demo-aesthetics/composition.technical-manual.json +5 -0
  22. package/dist/examples/demo-aesthetics/template.cinematic-lab-base.json +45 -0
  23. package/dist/examples/demo-aesthetics/template.claymation-playful-builder-base.json +45 -0
  24. package/dist/examples/demo-aesthetics/template.quiet-editorial-base.json +45 -0
  25. package/dist/examples/demo-aesthetics/template.technical-manual-base.json +45 -0
  26. package/dist/index.d.ts +4 -0
  27. package/dist/index.js +7 -0
  28. package/dist/mcp-result.d.ts +10 -0
  29. package/dist/mcp-result.js +26 -0
  30. package/dist/project-writes.d.ts +8 -0
  31. package/dist/project-writes.js +70 -0
  32. package/dist/registry/loader.d.ts +4 -0
  33. package/dist/registry/loader.js +85 -0
  34. package/dist/registry/preflight.d.ts +3 -0
  35. package/dist/registry/preflight.js +28 -0
  36. package/dist/registry/strategies.d.ts +9 -0
  37. package/dist/registry/strategies.js +30 -0
  38. package/dist/server.d.ts +6 -0
  39. package/dist/server.js +172 -0
  40. package/dist/tools/aesthetic.d.ts +57 -0
  41. package/dist/tools/aesthetic.js +331 -0
  42. package/dist/tools/compile-generation.d.ts +12 -0
  43. package/dist/tools/compile-generation.js +67 -0
  44. package/dist/tools/get-palette.d.ts +11 -0
  45. package/dist/tools/get-palette.js +23 -0
  46. package/dist/tools/list-templates.d.ts +6 -0
  47. package/dist/tools/list-templates.js +15 -0
  48. package/dist/tools/resolve-composition.d.ts +8 -0
  49. package/dist/tools/resolve-composition.js +38 -0
  50. package/dist/tools/validate-schema.d.ts +6 -0
  51. package/dist/tools/validate-schema.js +17 -0
  52. package/dist/types.d.ts +58 -0
  53. package/dist/types.js +7 -0
  54. package/examples/README.md +16 -0
  55. package/examples/cinematic-editorial/README.md +22 -0
  56. package/examples/cinematic-editorial/composition.json +14 -0
  57. package/examples/cinematic-editorial/manifests/illustrative-image.manifest.json +16 -0
  58. package/examples/cinematic-editorial/merge-strategies.json +3 -0
  59. package/examples/cinematic-editorial/modifier.golden-hour.json +10 -0
  60. package/examples/cinematic-editorial/modifier.high-contrast.json +5 -0
  61. package/examples/cinematic-editorial/palette.editorial-warm.json +10 -0
  62. package/examples/cinematic-editorial/template.base.json +11 -0
  63. package/examples/cinematic-editorial/template.noir.json +7 -0
  64. package/examples/demo-aesthetics/README.md +11 -0
  65. package/examples/demo-aesthetics/composition.cinematic-lab.json +5 -0
  66. package/examples/demo-aesthetics/composition.claymation-playful-builder.json +5 -0
  67. package/examples/demo-aesthetics/composition.quiet-editorial.json +5 -0
  68. package/examples/demo-aesthetics/composition.technical-manual.json +5 -0
  69. package/examples/demo-aesthetics/template.cinematic-lab-base.json +45 -0
  70. package/examples/demo-aesthetics/template.claymation-playful-builder-base.json +45 -0
  71. package/examples/demo-aesthetics/template.quiet-editorial-base.json +45 -0
  72. package/examples/demo-aesthetics/template.technical-manual-base.json +45 -0
  73. package/mcpb/icon.png +0 -0
  74. package/mcpb/manifest.json +73 -0
  75. package/package.json +74 -0
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@mosvera/mcp",
3
+ "version": "0.1.1",
4
+ "description": "Run Mosvera as local MCP tools for agents, editors, and Claude Desktop.",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "homepage": "https://mosvera.io",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/mosvera/mcp.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/mosvera/mcp/issues"
14
+ },
15
+ "keywords": [
16
+ "mosvera",
17
+ "mcp",
18
+ "model-context-protocol",
19
+ "aesthetic-infrastructure",
20
+ "ai"
21
+ ],
22
+ "files": [
23
+ "dist",
24
+ "examples",
25
+ "mcpb",
26
+ "README.md"
27
+ ],
28
+ "main": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.js"
34
+ }
35
+ },
36
+ "bin": {
37
+ "mosvera-mcp": "./dist/server.js"
38
+ },
39
+ "scripts": {
40
+ "build": "npm run clean && tsc -p tsconfig.build.json && node scripts/copy-example-registry.mjs",
41
+ "ci": "npm run build && npm run typecheck && npm test",
42
+ "clean": "rm -rf dist",
43
+ "mcpb:stage": "npm run build && node scripts/stage-mcpb.mjs",
44
+ "mcpb:pack": "npm run mcpb:stage && mcpb pack build/mcpb/mosvera build/mosvera/mosvera-mcp-0.1.1.mcpb",
45
+ "mcpb:inspect": "node scripts/inspect-mcpb.mjs build/mosvera/mosvera-mcp-0.1.1.mcpb",
46
+ "prepublishOnly": "npm run build && npm run typecheck && npm test",
47
+ "start": "tsx src/server.ts",
48
+ "test": "vitest run",
49
+ "test:watch": "vitest",
50
+ "typecheck": "tsc --noEmit"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "engines": {
56
+ "node": ">=20"
57
+ },
58
+ "dependencies": {
59
+ "@mosvera/runtime": "^0.1.1",
60
+ "@mosvera/provider-base": "^0.1.1",
61
+ "@mosvera/provider-flux": "^0.1.1",
62
+ "@mosvera/provider-openai": "^0.1.1",
63
+ "@mosvera/provider-sdxl": "^0.1.1",
64
+ "@modelcontextprotocol/sdk": "^1.29.0",
65
+ "zod": "^3.24.1"
66
+ },
67
+ "devDependencies": {
68
+ "@anthropic-ai/mcpb": "^2.1.2",
69
+ "typescript": "^5.7.2",
70
+ "vitest": "^4.1.7",
71
+ "tsx": "^4.19.2",
72
+ "@types/node": "^22.10.2"
73
+ }
74
+ }