Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Features
Add to your **`build.sbt`** (defaulting to **Scala 3.7.2**):

```scala 3 ignore
libraryDependencies += "com.tjclp" %% "fast-mcp-scala" % "0.2.0"
libraryDependencies += "com.tjclp" %% "fast-mcp-scala" % "0.2.1"
```

## Quickstart

```scala 3 raw
//> using scala 3.7.2
//> using dep com.tjclp::fast-mcp-scala:0.2.0
//> using dep com.tjclp::fast-mcp-scala:0.2.1
//> using options "-Xcheck-macros" "-experimental"

import com.tjclp.fastmcp.core.{Tool, Param, Prompt, Resource}
Expand Down Expand Up @@ -71,7 +71,7 @@ npx @modelcontextprotocol/inspector scala-cli scripts/quickstart.sc
You can also run examples directly from the command line:
```bash
scala-cli \
-e '//> using dep com.tjclp::fast-mcp-scala:0.2.0' \
-e '//> using dep com.tjclp::fast-mcp-scala:0.2.1' \
--main-class com.tjclp.fastmcp.examples.AnnotatedServer
```

Expand All @@ -90,7 +90,7 @@ In Claude desktop, you can add the following to your `claude_desktop_config.json
"command": "scala-cli",
"args": [
"-e",
"//> using dep com.tjclp::fast-mcp-scala:0.2.0",
"//> using dep com.tjclp::fast-mcp-scala:0.2.1",
"--main-class",
"com.tjclp.fastmcp.examples.AnnotatedServer"
]
Expand Down Expand Up @@ -153,7 +153,7 @@ Unmanaged JARs placed in a project's `lib/` folder are picked up automatically b
You can use `fast-mcp-scala` in another scala‑cli project:
```scala 3 ignore
//> using scala 3.7.2
//> using dep com.tjclp::fast-mcp-scala:0.2.0
//> using dep com.tjclp::fast-mcp-scala:0.2.1
//> using options "-Xcheck-macros" "-experimental"
```

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sonatypeTimeoutMillis := 60000

ThisBuild / sonatypeCredentialHost := sonatypeCentralHost

ThisBuild / version := "0.2.1-SNAPSHOT"
ThisBuild / version := "0.2.1"

val sv = "3.7.2"
ThisBuild / scalaVersion := sv // Using Scala 3
Expand Down
4 changes: 2 additions & 2 deletions scripts/quickstart.sc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//> using scala 3.7.2
//> using dep com.tjclp::fast-mcp-scala:0.2.1-SNAPSHOT
//> using dep com.tjclp::fast-mcp-scala:0.2.1
//> using options "-Xcheck-macros" "-experimental"

import com.tjclp.fastmcp.core.{Tool, Param, Prompt, Resource}
Expand Down Expand Up @@ -30,7 +30,7 @@ object ExampleServer extends ZIOAppDefault:

override def run =
for
server <- ZIO.succeed(FastMcpServer("ExampleServer", "0.2.0"))
server <- ZIO.succeed(FastMcpServer("ExampleServer", "0.2.1"))
_ <- ZIO.attempt(server.scanAnnotations[Example.type])
_ <- server.runStdio()
yield ()
Expand Down