@jurislm/woodpecker-ci-plugin 0.1.0 → 1.0.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.
package/dist/server.js CHANGED
@@ -8,7 +8,7 @@ const outputRequestSchema = z.object({
8
8
  });
9
9
  export function createServer(config, fetchImpl) {
10
10
  const client = new WoodpeckerClient(config, fetchImpl);
11
- const server = new McpServer({ name: "woodpecker-ci-plugin", version: "0.1.0" }, {
11
+ const server = new McpServer({ name: "woodpecker-ci-plugin", version: "1.0.1" }, {
12
12
  instructions: "Use read tools to resolve exact Woodpecker IDs and permissions before mutations. Never expose tokens or secret values in narration or logs.",
13
13
  });
14
14
  for (const operation of operations) {
package/mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "woodpecker-ci": {
5
5
  "type": "stdio",
6
6
  "command": "bunx",
7
- "args": ["-y", "@jurislm/woodpecker-ci-plugin@0.1.0"]
7
+ "args": ["-y", "@jurislm/woodpecker-ci-plugin@1.0.1"]
8
8
  }
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jurislm/woodpecker-ci-plugin",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
4
4
  "description": "Local stdio MCP server for Woodpecker CI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,10 +13,14 @@
13
13
  "plugin.json",
14
14
  "mcp.json",
15
15
  ".codex-plugin",
16
+ ".mcp.json",
17
+ ".app.json",
16
18
  ".mcp.json.example",
17
19
  ".app.json.example",
18
20
  "skills",
19
- "assets"
21
+ "assets",
22
+ "contracts",
23
+ "schemas"
20
24
  ],
21
25
  "engines": {
22
26
  "bun": ">=1.1.0"
@@ -33,12 +37,12 @@
33
37
  "test": "bun test --path-ignore-patterns dist",
34
38
  "api:fetch": "bun scripts/update-openapi.ts",
35
39
  "api:generate": "bun scripts/generate-openapi.ts",
36
- "api:check": "bun run api:generate && git diff --exit-code -- openapi src/generated",
40
+ "api:check": "bun run api:generate && git diff --exit-code -- openapi src/generated contracts",
37
41
  "smoke:read": "bun scripts/smoke-read.ts",
38
42
  "smoke:stdio": "bun scripts/smoke-stdio.ts",
39
43
  "manifest:fetch": "bun scripts/update-agent-plugin-schemas.ts",
40
44
  "manifest:check": "bun scripts/validate-plugin-manifests.ts",
41
- "check": "bun run manifest:check && bun run api:check && bun run typecheck && bun test && bun run build && npm pack --dry-run",
45
+ "check": "bun run manifest:check && bun run api:check && bun run typecheck && bun test && bun run build && bun pm pack --dry-run",
42
46
  "prepublishOnly": "bun run check"
43
47
  },
44
48
  "dependencies": {
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "woodpecker-ci",
4
- "version": "0.1.0",
4
+ "version": "1.0.1",
5
5
  "description": "Manage Woodpecker CI through agent tools.",
6
6
  "author": {
7
7
  "name": "JurisLM",
@@ -20,6 +20,7 @@
20
20
  "developerName": "JurisLM",
21
21
  "category": "Developer tools",
22
22
  "capabilities": ["Read", "Write"],
23
+ "composerIcon": "./assets/woodpecker_ci.svg",
23
24
  "websiteURL": "https://github.com/jurislm/woodpecker-ci-plugin"
24
25
  }
25
26
  }
@@ -0,0 +1,135 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
4
+ "title": "Agent Plugins MCP Configuration",
5
+ "description": "Machine-readable schema for mcp.json in Agent Plugins 1.0.0. The Agent Plugins specification defines additional semantic and operational requirements.",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "const": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
10
+ "description": "Canonical identifier of the MCP configuration schema for the Agent Plugins version targeted by this document."
11
+ },
12
+ "mcpServers": {
13
+ "type": "object",
14
+ "additionalProperties": {
15
+ "$ref": "#/$defs/server"
16
+ }
17
+ }
18
+ },
19
+ "required": [
20
+ "$schema",
21
+ "mcpServers"
22
+ ],
23
+ "additionalProperties": false,
24
+ "$defs": {
25
+ "server": {
26
+ "title": "MCP server",
27
+ "oneOf": [
28
+ {
29
+ "$ref": "#/$defs/stdioServer"
30
+ },
31
+ {
32
+ "$ref": "#/$defs/streamableHttpServer"
33
+ },
34
+ {
35
+ "$ref": "#/$defs/sseServer"
36
+ }
37
+ ]
38
+ },
39
+ "stdioServer": {
40
+ "title": "stdio MCP server",
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "stdio"
45
+ },
46
+ "command": {
47
+ "type": "string",
48
+ "minLength": 1,
49
+ "description": "Executable token. Resolution rules are defined by the Agent Plugins specification."
50
+ },
51
+ "args": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "env": {
58
+ "type": "object",
59
+ "propertyNames": {
60
+ "not": {
61
+ "enum": [
62
+ "PLUGIN_ROOT",
63
+ "PLUGIN_DATA"
64
+ ]
65
+ }
66
+ },
67
+ "additionalProperties": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "cwd": {
72
+ "type": "string",
73
+ "pattern": "^(?:\\./|\\$\\{PLUGIN_ROOT\\}(?:/|$)|\\$\\{PLUGIN_DATA\\}(?:/|$))",
74
+ "description": "Plugin-relative, PLUGIN_ROOT-rooted, or PLUGIN_DATA-rooted working directory. Filesystem containment is validated separately."
75
+ }
76
+ },
77
+ "required": [
78
+ "type",
79
+ "command"
80
+ ],
81
+ "additionalProperties": false
82
+ },
83
+ "streamableHttpServer": {
84
+ "title": "Streamable HTTP MCP server",
85
+ "type": "object",
86
+ "properties": {
87
+ "type": {
88
+ "const": "streamable-http"
89
+ },
90
+ "url": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "description": "MCP endpoint URL. URL semantics are defined by the Agent Plugins specification."
94
+ },
95
+ "headers": {
96
+ "$ref": "#/$defs/headers"
97
+ }
98
+ },
99
+ "required": [
100
+ "type",
101
+ "url"
102
+ ],
103
+ "additionalProperties": false
104
+ },
105
+ "sseServer": {
106
+ "title": "Legacy HTTP+SSE MCP server",
107
+ "type": "object",
108
+ "properties": {
109
+ "type": {
110
+ "const": "sse"
111
+ },
112
+ "url": {
113
+ "type": "string",
114
+ "minLength": 1,
115
+ "description": "MCP endpoint URL. URL semantics are defined by the Agent Plugins specification."
116
+ },
117
+ "headers": {
118
+ "$ref": "#/$defs/headers"
119
+ }
120
+ },
121
+ "required": [
122
+ "type",
123
+ "url"
124
+ ],
125
+ "additionalProperties": false
126
+ },
127
+ "headers": {
128
+ "title": "HTTP headers",
129
+ "type": "object",
130
+ "additionalProperties": {
131
+ "type": "string"
132
+ }
133
+ }
134
+ }
135
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
4
+ "title": "Agent Plugins Manifest",
5
+ "description": "Machine-readable schema for plugin.json in Agent Plugins 1.0.0. The Agent Plugins specification defines additional semantic and operational requirements.",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "const": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
10
+ "description": "Canonical identifier of the plugin manifest schema for the Agent Plugins version targeted by this document."
11
+ },
12
+ "name": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "maxLength": 64,
16
+ "pattern": "^(?!.*(?:--|\\.\\.))[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$",
17
+ "description": "Human-readable plugin name."
18
+ },
19
+ "version": {
20
+ "type": "string"
21
+ },
22
+ "description": {
23
+ "type": "string"
24
+ },
25
+ "author": {
26
+ "type": "object",
27
+ "properties": {
28
+ "name": {
29
+ "type": "string"
30
+ },
31
+ "email": {
32
+ "type": "string"
33
+ },
34
+ "url": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "additionalProperties": false
39
+ },
40
+ "homepage": {
41
+ "type": "string"
42
+ },
43
+ "repository": {
44
+ "type": "string"
45
+ },
46
+ "license": {
47
+ "type": "string"
48
+ },
49
+ "keywords": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string"
53
+ }
54
+ },
55
+ "extensions": {
56
+ "type": "object",
57
+ "description": "Client-specific manifest data keyed by reverse-domain extension namespace. Agent Plugins assigns no semantics to namespace object contents.",
58
+ "additionalProperties": {
59
+ "type": "object"
60
+ }
61
+ }
62
+ },
63
+ "required": [
64
+ "$schema",
65
+ "name"
66
+ ],
67
+ "additionalProperties": false
68
+ }