Page 1 of 1

Python Proxies for the REST API

PostPosted: Mon Nov 17, 2025 2:21 pm
by SBarnes
Although I am not a big fan of scripted/interpreted languages are there any plans to add a link to genrate Python proxy classes for the REST API in version 8, given the predominance of Python particularly in the area of Artificial Intelligence for such things as AI Agents and MCP?


I believe /types/python should work now that the ServiceStack version is upgraded to 6.1.

Re: Python Proxies for the REST API

PostPosted: Tue Nov 18, 2025 10:25 am
by Mike.Sheen
We are looking at MCP using the MCP C# SDK, but we don't have plans to provide anything else for version 8 - and we probably do not need to, as with MCP anything can interface with that - which is kinda the whole reason for MCP's existence.

Re: Python Proxies for the REST API

PostPosted: Tue Nov 18, 2025 10:45 am
by SBarnes
Thanks Mike,

I was already aware of the C# SDK which is still in preview and evolving but then again so is the MCP Specification itself given how recently it was released.

Re: Python Proxies for the REST API

PostPosted: Tue Nov 18, 2025 10:46 am
by Mike.Sheen
SBarnes wrote:Thanks Mike,

I was already aware of the C# SDK which is still in preview and evolving but then again so is the MCP Specification itself given how recently it was released.


Reading between the lines here - are you saying a Python proxy will provide something now that an MCP server could not?

Re: Python Proxies for the REST API

PostPosted: Tue Nov 18, 2025 11:02 am
by SBarnes
No not at all, MCP is extremely powerful and language agnostic.

Where I was coming from was twofold:

1. There are a lot of Python based tools for AI and although there are in the case of C# many equivalents such as things like SciSharp you unfortunately can't escape the predominance of Python in this area in terms of tools and example materials.

2. If you are looking at MCP there is also an SDK for Python as well, so if somebody was looking to build in Python the proxy classes etc for calling the REST API could be helpful.

I was only talking about adding the generate Python link to the metadata page, given I believe the version of ServiceStack in version 8 should do most of the work, there are also some Jiwa customers who use Python as well who might benefit from generating the proxies, adding the link would be advertising Version 8 can generate the proxies for Python now.

Re: Python Proxies for the REST API

PostPosted: Thu Nov 20, 2025 5:04 pm
by Mike.Sheen
SBarnes wrote:I believe the version of ServiceStack in version 8 should do most of the work


We're using ServiceStack 6.10 in Jiwa version 8 and don't plan to update that - it does what we need it to do and updating it in the past has introduced issues which we've had to report and then wait for a release with the fix - so we are not going to risk updating it now.

Re: Python Proxies for the REST API

PostPosted: Thu Nov 20, 2025 5:09 pm
by SBarnes
You shouldn't have to upgrade try baseurl/types/python I am pretty sure you'll get Python classes.

Re: Python Proxies for the REST API

PostPosted: Thu Nov 20, 2025 5:24 pm
by Mike.Sheen
Right, now I get what you are asking.

Logged DEV-12312 to add this to the standard REST API plugin.

It could also be added by a custom plugin:
Code: Select all
appHost.GetPlugin<MetadataFeature>().AddPluginLink("types/python", "Generate Python");

Re: Python Proxies for the REST API

PostPosted: Sun Dec 07, 2025 11:13 am
by SBarnes
Thanks,

By the way for the same version /types/dart also works.