Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ The `--openapi` option enables OpenAPI endpoints for AI plugin integration. When

To implement your own MCP server:

1. Create a class conforming to `MCPServer`
1. Attach the `@MCPServer` macro to a reference type like class or actor
2. Define your tools using `@MCPTool` attribute
3. Choose and configure a transport

Example:

```swift
class MyServer: MCPServer {
@MCPServer
class MyServer {
@MCPTool
func add(a: Int, b: Int) -> Int {
return a + b
Expand Down