Skip to content

Commit

Permalink
Update 2025-01-13-mcp-server.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Georgios Andrianakis <[email protected]>
  • Loading branch information
maxandersen and geoand committed Jan 13, 2025
1 parent 46c0677 commit 084dd14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
20 changes: 0 additions & 20 deletions _posts/2024-01-29-ngrok.adoc

This file was deleted.

10 changes: 8 additions & 2 deletions _posts/2025-01-13-mcp-server.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,17 @@ The forecast API requires a two-step process where we first get point metadata a

== Running the Server

To simplify deployment and development, we'll package the server as an uber-jar and enable file logging (since stdio is reserved for the MCP protocol):
To simplify deployment and development, we'll package the server as an uber-jar. This makes it possible to `mvn install` and publish as a jar to a Maven repository which makes it easiier to share and run for us and others.

[source,properties]
----
quarkus.package.uber-jar=true
----

Finally, we can optionally enable file logging as without it we would not be able to see any logs from the server as standard input/output is reserved for the MCP protocol.

[source,properties]
----
quarkus.log.file.enable=true
quarkus.log.file.path=weather-quarkus.log
----
Expand Down Expand Up @@ -199,7 +205,7 @@ image::claude-tools.png[Claude Tools Integration]

[NOTE]
====
You can also run the server directly withou using java - then it would be something like `java -jar <FULL PATH>/weather-1.0.0-SNAPSHOT-runner.jar`. We use JBang here because simpler if you want to share with someone who does not want to build the MCP server locally.
You can also run the server directly without using java - then it would be something like `java -jar <FULL PATH>/weather-1.0.0-SNAPSHOT-runner.jar`. We use JBang here because simpler if you want to share with someone who does not want to build the MCP server locally.
====

== Development Tools
Expand Down

0 comments on commit 084dd14

Please sign in to comment.