We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eaafbbc + d4b62ae commit ea07e2fCopy full SHA for ea07e2f
README.md
@@ -59,14 +59,15 @@ The `--openapi` option enables OpenAPI endpoints for AI plugin integration. When
59
60
To implement your own MCP server:
61
62
-1. Create a class conforming to `MCPServer`
+1. Attach the `@MCPServer` macro to a reference type like class or actor
63
2. Define your tools using `@MCPTool` attribute
64
3. Choose and configure a transport
65
66
Example:
67
68
```swift
69
-class MyServer: MCPServer {
+@MCPServer
70
+class MyServer {
71
@MCPTool
72
func add(a: Int, b: Int) -> Int {
73
return a + b
0 commit comments