<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/your-codename-one-app-can-be-an-mcp-server-pmralysu4" -->

---
title: Your Codename One App Can Be an MCP Server | daily.dev
description: Codename One&#x27;s JavaSE port can now act as a local MCP (Model Context Protocol) server, exposing a running simulator or desktop tool to AI agents like Codex or...
canonical: https://daily.dev/posts/your-codename-one-app-can-be-an-mcp-server-pmralysu4
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Your Codename One App Can Be an MCP Server | daily.dev
og:description: Codename One&#x27;s JavaSE port can now act as a local MCP (Model Context Protocol) server, exposing a running simulator or desktop tool to AI agents like Codex or...
og:url: https://daily.dev/posts/your-codename-one-app-can-be-an-mcp-server-pmralysu4
og:image: https://api.daily.dev/og/posts/pMRALYSu4.png
og:image:alt: Your Codename One App Can Be an MCP Server
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Your Codename One App Can Be an MCP Server

**[Awesome Java Newsletter](https://daily.dev/sources/java_libhunt)** · [@codenameone](https://daily.dev/codenameone) · 5 min read · 0 upvotes · 0 comments

## Summary

Codename One's JavaSE port can now act as a local MCP (Model Context Protocol) server, exposing a running simulator or desktop tool to AI agents like Codex or Claude Code. Instead of coordinate-based screenshot automation, agents interact via a semantic accessibility tree — finding UI elements by role and label, performing actions like activating buttons or setting text, and calling application-defined typed tools. The server starts explicitly via `MCP.startSocketServer()` or `MCP.startStdioServer()`, and all actions run on the event dispatch thread. Apps can also publish custom domain tools with JSON schemas. Screenshots remain available as a complement to the semantic tree. Currently limited to the JavaSE port; mobile and native targets are not yet supported.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/codenameone/your-codename-one-app-can-be-an-mcp-server-21ja>

## Similar posts on daily.dev

- [Fueling visual insights with MCP applications for complex data analysis](https://daily.dev/posts/fueling-visual-insights-with-mcp-applications-for-complex-data-analysis-dnbfvlzyv) · Dynatrace · 1 upvotes · 0 comments
- [Embedding HTML UIs in MCP Servers With Spring AI](https://daily.dev/posts/embedding-html-uis-in-mcp-servers-with-spring-ai-4kuynpwgw) · Baeldung · 3 upvotes · 0 comments
- [10 MCP Servers to Optimize Developer Workflows](https://daily.dev/posts/10-mcp-servers-to-optimize-developer-workflows-lhcgudgfj) · Nordic APIs · 33 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#mcp](https://daily.dev/tags/mcp), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/your-codename-one-app-can-be-an-mcp-server-pmralysu4)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Your Codename One App Can Be an MCP Server","url":"https://daily.dev/posts/your-codename-one-app-can-be-an-mcp-server-pmralysu4","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/your-codename-one-app-can-be-an-mcp-server-pmralysu4"},"datePublished":"2026-08-05T07:19:45.227Z","dateModified":"2026-08-24T07:00:29.631Z","description":"Codename One's JavaSE port can now act as a local MCP (Model Context Protocol) server, exposing a running simulator or desktop tool to AI agents like Codex or...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ded519ffc1fe8727a5048ee75832b49d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ded519ffc1fe8727a5048ee75832b49d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Awesome Java Newsletter","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Shai Almog","url":"https://daily.dev/codenameone","image":"https://avatars.githubusercontent.com/u/67850168?v=4","description":"Author, DevRel, Blogger, Open Source Hacker, Java Rockstar, Speaker, Instructor & Entrepreneur","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1260}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/your-codename-one-app-can-be-an-mcp-server-pmralysu4","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,mcp,accessibility","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Awesome Java Newsletter","item":"https://daily.dev/sources/java_libhunt"},{"@type":"ListItem","position":3,"name":"Your Codename One App Can Be an MCP Server"}]}
```

