Skip to content

Conversation

@ischneider
Copy link
Member

I wanted to introduce a few concepts and use some more features of the framework in an attempt to:

  • offer more toggles for tools as groups (e.g. the "sub-server")
  • use fastmcp tags, rather than the ignore set, as they can be cross-cutting with different server's tools
  • separate out the auto-generated client
  • add a custom context (placeholder for now)
  • don't use a class or closure to share static dependency (session)

On the latter point, I went with the global lazy-initialized session approach because it's simple. The other approach which I looked at is placing the session in the (new) Planet context but it's less clear how to get the session from the context (the lifecycle context is untyped though we could create a static unwrapper function)

I have a separate MR for the downstream remote server though it's much smaller (but also doesn't support flag parsing yet)

@angaither
Copy link
Contributor

this worked for me after a cache clear (before it the server wouldn't start tho)
is it worth adding anything to the readme for the startup option inputs for this

also fwiw, I agree with steve and perhaps the prefix name should just be sdk without wrapper

@ischneider ischneider changed the title WIP: refactor to support more flexible tool toggles refactor to support more flexible tool toggles Sep 11, 2025
@ischneider ischneider merged commit 03d090e into main Sep 11, 2025
8 checks passed
@ischneider ischneider deleted the refactor branch September 11, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants