@opencode/protocol 2.0.31 → 2.1.0

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.
@@ -2,7 +2,27 @@ import { Mcp } from "@opencode/schema/mcp";
2
2
  import { Schema } from "effect";
3
3
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
4
4
  import { McpServerNotFoundError } from "../errors.js";
5
- export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", never, Schema.toCodecStringTree<Schema.Struct<{
5
+ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.add", "PUT", "/api/experimental/mcp/:server", Schema.toCodecStringTree<Schema.Struct<{
6
+ server: Schema.String;
7
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
8
+ readonly location: Schema.optional<Schema.Struct<{
9
+ readonly directory: Schema.optional<Schema.String>;
10
+ }>>;
11
+ }>>, Schema.toCodecJson<Schema.Struct<{
12
+ readonly config: Schema.toTaggedUnion<"type", readonly [typeof Mcp.LocalConfig, typeof Mcp.RemoteConfig]>;
13
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.connect", "POST", "/api/experimental/mcp/:server/connect", Schema.toCodecStringTree<Schema.Struct<{
14
+ server: Schema.String;
15
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
16
+ readonly location: Schema.optional<Schema.Struct<{
17
+ readonly directory: Schema.optional<Schema.String>;
18
+ }>>;
19
+ }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof McpServerNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.disconnect", "POST", "/api/experimental/mcp/:server/disconnect", Schema.toCodecStringTree<Schema.Struct<{
20
+ server: Schema.String;
21
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
22
+ readonly location: Schema.optional<Schema.Struct<{
23
+ readonly directory: Schema.optional<Schema.String>;
24
+ }>>;
25
+ }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof McpServerNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", never, Schema.toCodecStringTree<Schema.Struct<{
6
26
  readonly location: Schema.optional<Schema.Struct<{
7
27
  readonly directory: Schema.optional<Schema.String>;
8
28
  }>>;
@@ -27,27 +47,7 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEn
27
47
  }>]>;
28
48
  readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
29
49
  }>>;
30
- }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.add", "PUT", "/api/experimental/mcp/:server", Schema.toCodecStringTree<Schema.Struct<{
31
- server: Schema.String;
32
- }>>, Schema.toCodecStringTree<Schema.Struct<{
33
- readonly location: Schema.optional<Schema.Struct<{
34
- readonly directory: Schema.optional<Schema.String>;
35
- }>>;
36
- }>>, Schema.toCodecJson<Schema.Struct<{
37
- readonly config: Schema.toTaggedUnion<"type", readonly [typeof Mcp.LocalConfig, typeof Mcp.RemoteConfig]>;
38
- }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.remove", "DELETE", "/api/experimental/mcp/:server", Schema.toCodecStringTree<Schema.Struct<{
39
- server: Schema.String;
40
- }>>, Schema.toCodecStringTree<Schema.Struct<{
41
- readonly location: Schema.optional<Schema.Struct<{
42
- readonly directory: Schema.optional<Schema.String>;
43
- }>>;
44
- }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof McpServerNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.connect", "POST", "/api/experimental/mcp/:server/connect", Schema.toCodecStringTree<Schema.Struct<{
45
- server: Schema.String;
46
- }>>, Schema.toCodecStringTree<Schema.Struct<{
47
- readonly location: Schema.optional<Schema.Struct<{
48
- readonly directory: Schema.optional<Schema.String>;
49
- }>>;
50
- }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof McpServerNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.disconnect", "POST", "/api/experimental/mcp/:server/disconnect", Schema.toCodecStringTree<Schema.Struct<{
50
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.remove", "DELETE", "/api/experimental/mcp/:server", Schema.toCodecStringTree<Schema.Struct<{
51
51
  server: Schema.String;
52
52
  }>>, Schema.toCodecStringTree<Schema.Struct<{
53
53
  readonly location: Schema.optional<Schema.Struct<{