Commit Graph

8 Commits

Author SHA1 Message Date
hanishkvc 79cfbbfc8a SimpleSallap:SimpleMCP:Allow auth check to be bypassed, if needed
By default bearer based auth check is done always whether in https
or http mode. However by updating the sec.bAuthAlways config entry
to false, the bearer auth check will be carried out only in https
mode.
2025-12-07 02:34:05 +05:30
hanishkvc 69be7f2029 SimpleSallap:SimpleMCP: Use ToolManager for some of needed logics
Build the list of tool calls

Trap some of the MCP post json based requests and map to related
handlers. Inturn implement the tool call execution handler.

Add some helper dataclasses wrt expected MCP response structure

TOTHINK: For now maintain id has a string and not int, with idea
to map it directly to callid wrt tool call handshake by ai model.

TOCHECK: For now suffle the order of fields wrt jsonrpc and type
wrt MCP response related structures, assuming the order shouldnt
matter. Need to cross check.
2025-12-06 23:48:58 +05:30
hanishkvc 0a445c875b SimpleSallap:SimpleMCP:Move towards post json based flow 2025-12-06 19:46:48 +05:30
hanishkvc d470d7e47d SimpleSallap:SimpleProxy:DataClass Config simpleproxy updated 2025-12-05 21:42:41 +05:30
hanishkvc 277225dddd SimpleSallap:SimpleProxy:DataClass Config - p4
Minimal skeleton to allow dict [] style access to dataclass based
class's attributes/fields. Also get member function similar to dict.

This simplifies the flow and avoids duplicating data between
attribute and dict data related name and data spaces.
2025-12-05 21:10:01 +05:30
hanishkvc 4f790cb646 SimpleSallap:SimpleProxy:DataClass Config - P3
Add a helper base class to try map data class's attributes into
underlying dict.

TODO: this potentially duplicates data in both normal attribute
space as well as dict items space. And will require additional
standard helper logics to be overridden to ensure sync between
both space etal. Rather given distance from python internals for
a long time now, on pausing and thinking a bit, better to move
into a simpler arch where attributes are directly worked on for
dict [] style access.
2025-12-05 20:47:33 +05:30
hanishkvc 5560840099 SimpleSallap:SimpleProxy:DataclassDict driven Config - p2
Assigning defaut values wrt compound type class members
2025-12-05 18:36:43 +05:30
hanishkvc 4e7c7374d7 SimpleSallap:SimpleProxy:Make Config dataclass driven - p1
Instead of maintaining the config and some of the runtime states
identified as gMe as a generic literal dictionary which grows at
runtime with fields as required, try create it as a class of classes.

Inturn use dataclass annotation to let biolerplate code get auto
generated.

A config module created with above, however remaining part of the
code not yet updated to work with this new structure.

process_args and load_config moved into the new Config class.
2025-12-05 17:59:20 +05:30